MySQL Forums
Forum List  »  Newbie

Re: Date input and - number of days from input date
Posted by: Peter Brawley
Date: May 16, 2018 09:11AM

> (metrics_5.created_at)>'5/10/2018'- 7)

MySQL uses yyyy-mm-dd date format, doesn't understand the oddball US date format.

For reliable subtraction of date units from a date see the manual page for Date_Sub().

Options: ReplyQuote


Subject
Written By
Posted
Re: Date input and - number of days from input date
May 16, 2018 09:11AM


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.