Tuesday, August 13, 2013

Date

Format : date(format,timestamp)

$today = date("Y-m-d");

format time stamp : mktime(hour,minute,second,month,day,year,is_dst)

$tomorrow = mktime(0,0,0,date("m"),date("d")+1,date("Y"));

$nextweek = date("Y-m-d",mktime(0,0,0,date("m"),date("d")+7,date("Y")));

No comments: