Tuesday, 18 July 2017

Java Calendar


Calendar cal_Two = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
System.out.println(cal_Two.getTime());
and the response i got is:
Sat Jan 25 15:44:18 IST 2014

===========================
https://stackoverflow.com/questions/21349475/calendar-getinstancetimezone-gettimezoneutc-is-not-returning-utc-time

No comments:

Post a Comment