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 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)); ?> Link to comment https://forums.phpfreaks.com/topic/123528-adding-7-days/#findComment-637966 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.