glenelkins Posted August 7, 2006 Share Posted August 7, 2006 HiHow do I add 1 day to todays date?This does not seem to work [code]$newgroupdate = date("Y-m-d", time()) + 1;[/code] Link to comment https://forums.phpfreaks.com/topic/16778-adding-1-day-to-a-date/ Share on other sites More sharing options...
king arthur Posted August 7, 2006 Share Posted August 7, 2006 Use time() + 24 * 60 * 60 Link to comment https://forums.phpfreaks.com/topic/16778-adding-1-day-to-a-date/#findComment-70577 Share on other sites More sharing options...
Daniel0 Posted August 7, 2006 Share Posted August 7, 2006 Or [code]strtotime('+1 day');[/code] Link to comment https://forums.phpfreaks.com/topic/16778-adding-1-day-to-a-date/#findComment-70661 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.