SyntaxFix
Write A Post
Hire A Developer
Questions
Yep - 'E' does the trick
http://download.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html
Date date = new Date(); DateFormat df = new SimpleDateFormat("yyyy-MM-E"); System.out.println(df.format(date));