- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
public static java.sql.Date StringToDate(String sDate) {
java.sql.Date Date = null;
if (!sDate.startsWith("00000000")) {
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
try {
Date rdate = dateFormat.parse(sDate);
Date = new java.sql.Date(rdate.getTime());
} catch (Exception e) {
}
}
return Date;
}
Lure Of Chaos 12.08.2011 11:36 # +2
foGa 12.08.2011 11:37 # 0