Mateobus Posted July 6, 2006 Share Posted July 6, 2006 I am trying to add 7 days to a date, is there a way to do this with the date function, or in a MySQL query with a date column. Link to comment https://forums.phpfreaks.com/topic/13884-dates-in-php/ Share on other sites More sharing options...
Barand Posted July 6, 2006 Share Posted July 6, 2006 [code]<?php$dbdate = '2006-07-06';echo date ('Y-m-d', strtotime("+7 days $dbdate")); //==> 2006-07-13?>[/code] Link to comment https://forums.phpfreaks.com/topic/13884-dates-in-php/#findComment-54081 Share on other sites More sharing options...
Mateobus Posted July 6, 2006 Author Share Posted July 6, 2006 thanks bro Link to comment https://forums.phpfreaks.com/topic/13884-dates-in-php/#findComment-54082 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.