//String型日期转换成Timestamp的日期;
public Timestamp stringtotime(String datetime) throws ParseException{
Timestamp ts = null;
SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss",Locale.SIMPLIFIED_CHINESE);
Date date = DateFormat.getDateInstance(DateFormat.SHORT, Locale.SIMPLIFIED_CHINESE).parse(datetime);
String mDateTime=formatter.format(date);
ts=Timestamp.valueOf(mDateTime);
return ts;
}
C#应该Convert.toDateTime()就行。其他不清楚了