Java Date setMinutes() MethodThe setMinutes() method of Java Date class sets the minutes of the hour of this date object to the given value. It changes the previous minutes of the hour value to the newly specified value. This method is deprecated as of JDK version 1.1 and replaced by Calendar.set(Calendar.MINUTE, int minutes). Syntax:ParametersThe parameter 'minutes' represents the minute value between 0-59. ReturnNA ExampleTest it NowOutput: Old minute value is: 56 The Minute value after setting is: 10 Next TopicJava Util Date |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India