Java Calendar internalGet() MethodThe internalGet() method of java.util.Calendar class is a final, and protected method. This method returns the value of the calendar field passed as a parameter. SyntaxParameterfield - the given calendar field. Returnsthe value for the given calendar field. ThrowsDoes not throw Exception. Example 1Output: The current date is : Fri Aug 10 17:08:13 PDT 2018 Year : 2018 Month : 7 Day : 6 Year 2018 Month 6 Day 6 Example 2Output: Todays date is : Fri Aug 10 17:13:07 PDT 2018 HOUR : 5 MINUTE : 13 SECOND : 7 Next TopicJava-calendar-islenient-method |
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