Created
March 1, 2016 19:45
-
-
Save AssafMashiah/094566032e2983b08b05 to your computer and use it in GitHub Desktop.
Date mysql fun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATE_FORMAT(DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH), '%Y-%m-01 05:00:00') AND DATE_FORMAT(NOW(), '%Y-%m-01 05:00:00') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment