Firebird has now builtin functions FIRST_DAY and LAST_DAY November 9, 2017 mariuz Leave a comment Adriano added two new builtin functions FIRST_DAY and LAST_DAY. Here is the Github commit a2556be .