[Logo]
Forums Register Login
Question about GregorianCalendar class
Hi

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.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Dec 14, 2017 03:16:50.