Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java date to string yyyy-mm-dd

java.util.Date date = new Date("Sat Dec 01 00:00:00 GMT 2012");
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
String format = formatter.format(date);
System.out.println(format);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #date #string
ADD COMMENT
Topic
Name
9+6 =