johnwayne77 Posted February 2, 2007 Share Posted February 2, 2007 anybody knows how to use the mktime() function? i want to display the tomorrow's date ( like : sunday 03 feb 2007 ) Link to comment https://forums.phpfreaks.com/topic/36817-solved-mktime/ Share on other sites More sharing options...
marcus Posted February 2, 2007 Share Posted February 2, 2007 $tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y")); Taken from example 415 in php.net date function. Link to comment https://forums.phpfreaks.com/topic/36817-solved-mktime/#findComment-175629 Share on other sites More sharing options...
chronister Posted February 2, 2007 Share Posted February 2, 2007 <? $tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y")); echo date("l d M Y",$tomorrow); ?> prints Saturday 03 Feb 2007 Link to comment https://forums.phpfreaks.com/topic/36817-solved-mktime/#findComment-175649 Share on other sites More sharing options...
johnwayne77 Posted February 2, 2007 Author Share Posted February 2, 2007 thanks dude! Link to comment https://forums.phpfreaks.com/topic/36817-solved-mktime/#findComment-175660 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.