/**
* Convert String to Date
* @param dateString
* @return
*/
public static Date convertStringToDate(String dateString) {
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd-MM-yyyy");
java.util.Date dt = null;
try {
dt = sdf.parse(dateString);
System.out.println("Debug dt :"+dt);
} catch (java.text.ParseException p) {
System.out.println(p.toString());
}
return dt;
}
Friday, May 21, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment