Java Date getDate() Method
The 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)
It returns the day of the month represented by this date object.
ExampleTest it Now
date of the month is : 26