Java Date getDate() MethodThe getDate() method of Java Date class returns the value between 1 to 31 which represents the day of the month by this date object. This method is deprecated as of JDK version 1.1 and replaced by Calender.get(Calender.DAY_OF_MONTH) Syntax:ParametersNA ReturnIt returns the day of the month represented by this date object. ExampleTest it NowOutput: date of the month is : 26
Next TopicJava Util Date
|