try{
Log.writeMessage(Log.LOG_LEVEL_DEBUG, "1");
String strTmp = "sep 21 2004";
Log.writeMessage(Log.LOG_LEVEL_DEBUG, "2");
java.util.Date dtTmp = new SimpleDateFormat("month dd, yyyy").parse(strTmp);
Log.writeMessage(Log.LOG_LEVEL_DEBUG, "3");
String strOutDt = new SimpleDateFormat("mm/dd/yyyy").format(dtTmp);
Log.writeMessage(Log.LOG_LEVEL_DEBUG, "strOutDt = " + strOutDt);
}catch(Exception ex){System.out.println(ex.getMessage()); }
I get unparseable date? How to solve this? The user enters date in this fashion. How do I convert it to mm/dd/yyyy?
[ October 07, 2004: Message edited by: shan javan ]