Jump to content

[SOLVED] date(Y-m-d) + 3 days


Roq

Recommended Posts

I'm running some SQL queries that are based off of having a start date and an end date.  I need the date in the format of date(Y-m-d), or something like 2008-04-08 (today's date, april 8th, 2008). 

 

The problem I have is I need to also get the date 3 days from today in the same format.  Just adding to the day obviously has the problem of not rolling over on months end, so what is the 'proper' way for getting this information? 

Link to comment
https://forums.phpfreaks.com/topic/100160-solved-datey-m-d-3-days/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.