Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

date format in java

String pattern = "EEEEE dd MMMMM yyyy HH:mm:ss.SSSZ";
SimpleDateFormat simpleDateFormat =
        new SimpleDateFormat(pattern, new Locale("da", "DK"));

String date = simpleDateFormat.format(new Date());
System.out.println(date);
Source by tutorials.jenkov.com #
 
PREVIOUS NEXT
Tagged: #date #format #java
ADD COMMENT
Topic
Name
5+7 =