Date And Time

in Hindi - Date And Time



not yet

Source Code :

RUNimport java.util.Date;
import java.text.SimpleDateFormat;

public class DateTimeFormat {
public static void main(String[] args) {
System.out.print('\u000C');// clear screen
Date dt = new Date();
System.out.println(dt); 
SimpleDateFormat df = new SimpleDateFormat("E, Y-M-d hh:mm:ss a z");
System.out.println(df.format(dt));
df = new SimpleDateFormat("EEEE, MMMM dd, yyyy");
System.out.println(df.format(dt));

}
}