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. Quote 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] Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/13884-dates-in-php/#findComment-54082 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.