Jump to content

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

Actually I just need to store it as a variable to use in my SQL query.  Basically this report will be run every friday and will automatically email out any change management tickets that are scheduled to be performed over the next 3 days (or, the weekend + Monday).

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.