<?php
$tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y"));$lastmonth = mktime(0, 0, 0, date("m")-1, date("d"), date("Y"));$nextyear = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1);
?>
<?phpecho date("M-d-Y", mktime(0, 0, 0, 12, 32, 1997));
echo date("M-d-Y", mktime(0, 0, 0, 13, 1, 1997));
echo date("M-d-Y", mktime(0, 0, 0, 1, 1, 1998));
echo date("M-d-Y", mktime(0, 0, 0, 1, 1, 98));?>
19天前:
$sdate = date("Y-m-d",mktime(0, 0, 0, date("m"), date("d")-19, date("Y")));
7天前:
$sdate = date("Y-m-d",mktime(0, 0, 0, date("m"), date("d")-7, date("Y")));
沒有留言:
張貼留言