Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.1K+ articles
Java
9.3K+ articles
Misc
7.8K+ articles
Java-Functions
4.2K+ articles
Java - util package
1.6K+ articles
Java 8
122+ articles
Java-Calendar
38 posts
Recent Articles
Popular Articles
Converting XMLGregorianCalendar to Date in Java
Last Updated: 23 July 2025
XMLGregorianCalendar can be transformed into either java.util.Date or java.sql.Date as per the requirements. JAXB (Java API/XML Bindings Architecture) is a common framewor...
read more
Java
Technical Scripter
Java Programs
Picked
Technical Scripter 2020
Java-Date-Time
Java-Calendar
Calendar roll(int calndr_field, int amt) method in Java with Examples
Last Updated: 11 July 2025
The roll(int calndr_field, int amt) method in Calendar class is used to operate on the passed calendar field by adding the passed amount to a specific calendar field witho...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar clear(int cal_field) Method in Java with Examples
Last Updated: 11 July 2025
The clear(int cal_field) method in Calendar class is used to set a given calendar field value and the time value of this Calendar undefined.Note: Implementation of calenda...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar setTimeZone() Method in Java with Examples
Last Updated: 06 March 2019
The setTimeZone(TimeZone time_zone) method in Calendar class takes a Time Zone value as a parameter and modifies or set the timezone represented by this Calendar.Syntax:pu...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar setTimeInMillis() Method in Java with Examples
Last Updated: 06 March 2019
The setTimeInMillis(long mill_sec) method in Calendar class is used to set Calendars time represented by this Calendar from the passed long value.Syntax:public void setTim...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar setTime() Method in Java with Examples
Last Updated: 06 March 2019
The setTime(Date dt) method in Calendar class is used to set Calendars time represented by this Calendar's time value, with the given or passed date as a parameter.Syntax:...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar setLenient() Method in Java with Examples
Last Updated: 21 February 2019
The setLenient(boolean leniency) method in Calendar class is used to specify whether the interpretation of the date and time is to be lenient or not.Syntax:public void set...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar setFirstDayOfWeek() Method in Java with Examples
Last Updated: 21 February 2019
The setFirstDayOfWeek(int day_val) method in Calendar class is used to set the first day of the week using the day_val in this Calendar.Syntax:public void set(int day_val)...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar set() Method in Java with Examples
Last Updated: 21 February 2019
The set(int calndr_field, int new_val) method in Calendar class is used to set the calndr_field value to a new_val. The older field of this calendar get replaced by a new ...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar isSet() Method in Java with Examples
Last Updated: 18 December 2021
The isSet(int calndr_field) method in Calendar class is used to check whether the given calendar field has a value set or not. All the Cases for which the values have been...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar roll() Method in Java with Examples
Last Updated: 18 November 2019
The roll(int calndr_field, boolean up_down) method in Calendar class is used to operate on the passed calendar field by moving the passed field, up or down by a single uni...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar getTime() Method in Java with Examples
Last Updated: 24 June 2021
The getTime() method in Calendar class is used to return an object resembling the Date that is represented by this Calendar's time value.Syntax:public final Date getTime()...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar getTimeZone() Method in Java with Examples
Last Updated: 29 July 2021
The getTimeZone() method in Calendar class is used to return the current time-zone of this Calendar.Syntax:public TimeZone getTimeZone()Parameters: The method does not tak...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar hashCode() Method in Java with Examples
Last Updated: 05 June 2021
The hashCode() method in Calendar class is used to return the hash code for this Calendar Object.Syntax:public int hashCode()Parameters: The method does not take any param...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
Calendar isLenient() Method in Java with Examples
Last Updated: 19 December 2022
The isLenient() method in Calendar class is used to know and understand whether the date and time interpretation of this Calendar is to be considered lenient or not.Syntax...
read more
Misc
Java
Java - util package
Java-Functions
Java-Calendar
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !