Forums Register Login
Question about GregorianCalendar class

If I create a GregorianCalendar object like that:

GregorianCalendar date = new GregorianCalendar();

Are we sure that date contains the today date?
if not, how could we force the created object to contain the today date?

Best Regards
public GregorianCalendar() constructs a default GregorianCalendar using the current time in the default time zone with the default locale.

This thread has been viewed 722 times.

All times above are in ranch (not your local) time.
The current ranch time is
Dec 11, 2018 01:35:53.