Created
May 4, 2016 17:02
-
-
Save stasgm/29b0dc83b2746929f87a3763751b4368 to your computer and use it in GitHub Desktop.
Firebird SQL - First/last day of month
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
select | |
current_date - EXTRACT(DAY FROM current_date) + 1 FirstDay, | |
current_date - EXTRACT(DAY FROM current_date) + 32 - EXTRACT(DAY FROM current_date - EXTRACT(DAY FROM current_date) + 32) LastDay | |
from | |
rdb$database |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment