Sign in to follow this  
Followers 0
Cockroach

A Date function missing from the SQL Date function page

2 posts in this topic

There is a function which is not referenced on the W3Schools pages. LAST_DAY(). Not sure if it is a function, but I use it a lot! Would be nice to see it on the SQL Date functions page!

 

Also, both of these work but there is no mention of it. Would help a lot to have a reference there when I look for reverse engineering someone else's code for maintenance & trouble shooting.

 

SUBDATE() = DATE_SUB() both work the same.

ADDDATE() = DATE_ADD() both work the same.

Edited by Cockroach

Share this post


Link to post
Share on other sites

THere are plenty of functions missing from the W3Schools website, it's simply too much to keep track of. If you want complete information, always go to the official source. Here's the list of Date functions in MySQL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0