SyntaxFix
Write A Post
Hire A Developer
Questions
Why not just use java.text.SimpleDateFormat ?
Date someDate = new Date(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); String s = df.format(someDate);
Or see: http://www.tutorialspoint.com/java/java_date_time.htm