sseeley Posted May 26, 2009 Share Posted May 26, 2009 I have a date that I recieve as a post an example being $date = "01/04/1977". I need to add one day onto this date, can anyone help me with this? I also need to be able to look up the day of the week for this date? Is this possible? Many thanks in advance. Stuart Quote Link to comment https://forums.phpfreaks.com/topic/159764-date-1-day/ Share on other sites More sharing options...
Maq Posted May 26, 2009 Share Posted May 26, 2009 $date = "01/04/1977"; $tom = date("m/d/Y", strtotime("$date +1 Day")); echo $tom; ?> Quote Link to comment https://forums.phpfreaks.com/topic/159764-date-1-day/#findComment-842647 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.