MySQL Forums
Forum List  »  Newbie

Re: Custom Defined Week/Date Range Help
Posted by: Peter Brawley
Date: January 31, 2017 03:55PM

> Is there any logic I could write that would make the date range always
> be the most recently passed Friday*** to the upcoming Thursday***?

The most recent passed Friday is ...

CurDate() - INTERVAL WeekDay( CurDate() ) + 3 DAY

Options: ReplyQuote


Subject
Written By
Posted
Re: Custom Defined Week/Date Range Help
January 31, 2017 03:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.