如何将字符串转换为时间?此代码不返回任何内容。
$id = strtoupper($_POST['id']);
$query = mysql_query("SELECT STR_TO_DATE('RD/OT 07:30','%x %h:%i') as ScheduleIn FROM tbl_uploadedschedule") or die(mysql_error());
$res = mysql_fetch_array($query);
$r = $res['ScheduleIn'];
return($r);