public class DefaultDateFormatPattern {
public static void main(String[] args) {
System.out.println(new Date());
}
}
The output is: Thu Jan 08 10:52:56 IST 2015
Is there any method in Java to get the pattern of the date it is showing ?