SyntaxFix
Write A Post
Hire A Developer
Questions
You could use new GregorianCalendar(theYear, theMonth, theDay).getTime():
new GregorianCalendar(theYear, theMonth, theDay)
.getTime()
public GregorianCalendar(int year, int month, int dayOfMonth) Constructs a GregorianCalendar with the given date set in the default time zone with the default locale.
public GregorianCalendar(int year, int month, int dayOfMonth)
Constructs a GregorianCalendar with the given date set in the default time zone with the default locale.