Javatpoint Logo
Javatpoint Logo

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)

Syntax:

Parameters

NA

Return

It returns the day of the month represented by this date object.

Example

Test it Now

Output:

date of the month is  : 26

Next TopicJava Util Date




Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA