Jump to content


Photo

Adding 1 day to a date


  • Please log in to reply
2 replies to this topic

#1 glenelkins

glenelkins
  • Members
  • PipPipPip
  • Advanced Member
  • 760 posts
  • LocationBridlington - East Riding of Yorkshire - United Kingdom

Posted 07 August 2006 - 10:34 AM

Hi

How do I add 1 day to todays date?

This does not seem to work
$newgroupdate = date("Y-m-d", time()) + 1;

http://thewebsolutionprovider.com - A Solution For Everything Web!

#2 king arthur

king arthur
  • Members
  • PipPipPip
  • Advanced Member
  • 335 posts
  • LocationUK HQ

Posted 07 August 2006 - 10:55 AM

Use time() + 24 * 60 * 60
Sir Isaac Newton said "If I have seen farther, it is by standing on the shoulders of giants". But it is not recorded as to whether he said it before or after he was hit on the head by a falling apple.

#3 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 07 August 2006 - 01:32 PM

Or
strtotime('+1 day');





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users