I know of date formats such as \"yyyy-mm-dd\" -which displays date in format 2011-02-26 \"yyyy-MMM-dd\"-which displays date
\"yyyy-mm-dd\"
2011-02-26
\"yyyy-MMM-dd\"
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));