在MySQL中,只需做 MONTH(date) ,,, YEAR(date) 等。在PHP中,可以 date('g', strtotime($datefromsql)) 例如,从日期开始的12小时格式小时。
確定! 回上一頁