This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Originally posted by shan javan: java.util.Date dtTmp = new SimpleDateFormat("month dd, yyyy").parse(strTmp);
Looking at SimpleDateFormat, I believe you want "MMM dd, yyyy". "MMMM" represents the full name, "MMM" the abbreviated three-letter name. It sees "month" as "m" the minute within the hour, "ont" as four unknown symbols, and "h" as the hour in the day.
Joined: Nov 22, 2008
Any date format I want to convert it into mm/dd/yyyy format? How to do that?
How do I know what format the user has entered? [ October 07, 2004: Message edited by: shan javan ]
Joined: Aug 07, 2003
Originally posted by shan javan: Any date format I want to convert it into mm/dd/yyyy format? How to do that?