Wednesday, May 25, 2011

JAVA - Why you would use java.util.Calendar to get your NOW/ Current Time

Why you would use java.util.Calendar to get your Now/Current Time?

Calendar cal = Calendar.getInstance();
cal.getTime();

Answer: Only when you need to get the Now/Current Time from different time zone

No comments:

Post a Comment