This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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?