What might be the difference between getting datetime using
Calendar.getInstance()
vs
new GregorianCalendar()
?
Calendar.getInstance() will give you a Calendar using the default time zone and locale, which can result in a GregorianCalendar, a BuddhistCalendar, or a JapaneseImperialCalendar.
Calendar
GregorianCalendar
BuddhistCalendar
JapaneseImperialCalendar
GregorianCalendar will always give you, well, a Gregorian calendar.