mysql get last day of month

Solutions on MaxInterview for mysql get last day of month by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "mysql get last day of month"
Alexa
31 Apr 2016
1SELECT LAST_DAY(CURDATE());						-- Current month
2SELECT LAST_DAY(CURDATE() - INTERVAL 1 MONTH);	-- Previous month
3SELECT LAST_DAY(CURDATE() + INTERVAL 1 MONTH);	-- Next month