Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Date java format

String pattern = "MM-dd-yyyy";
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);
String date = simpleDateFormat.format(new Date());
System.out.println(date);
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #Date #java #format
ADD COMMENT
Topic
Name
2+5 =