Javatpoint Logo
Javatpoint Logo

Java Date getMinutes() Method

The getMinutes() method of Java Date class returns the value between 0 to 59 which represents the minute of the hour and minute of the hour is represented by this date object.

This method is deprecated as of JDK version 1.1 and replaced by Calender.get(Calender.MINUTE).

Syntax:

Parameters

NA

Return

The getMinutes() method returns the minute of the hour represented by this date object.

Example

Test it Now

Output:

Minute of the hour is  : 12

Next TopicJava Util Date




Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA