drisate Posted September 9, 2008 Share Posted September 9, 2008 how can i add 7 days to this? $weekDate = date("Y-m-d", $tempTimestamp); i tryed $weekDate = date("Y-m-d"+7, $tempTimestamp); but that gave 7 as the $weekDate value Quote Link to comment https://forums.phpfreaks.com/topic/123528-adding-7-days/ Share on other sites More sharing options...
Caesar Posted September 9, 2008 Share Posted September 9, 2008 <?php $weekDate = date("Y-m-d", ($tempTimestamp + 604800)); ?> Quote Link to comment https://forums.phpfreaks.com/topic/123528-adding-7-days/#findComment-637966 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.