function xl_parse_date($date) { $unixtime = strtotime($date); $year = date("Y", $unixtime); $month = date("m", $unixtime); $day = date("d", $unixtime); $hour = date("H", $unixtime); $minute = date("i", $unixtime); $second = date("s", $unixtime); // Convert to Excel date return xl_date_list($year, $month, $day, $hour, $minute, $second); }
function xl_parse_date($date) { $unixtime = strtotime($date); $year = date('Y', $unixtime); $month = date('m', $unixtime); $day = date('d', $unixtime); $hour = date('H', $unixtime); $minute = date('i', $unixtime); $second = date('s', $unixtime); // Convert to Excel date return xl_date_list($year, $month, $day, $hour, $minute, $second); }