import java.util.Date;
public class MainClass {
public static void main(String[] args) {
Date now = new Date();
System.out.printf("Unix date format: %tc/%Tc\n", now, now);
}
}
Unix date format: Thu May 24 15:58:29 PDT 2007/THU MAY 24 15:58:29 PDT 2007