The first day of the current month in php using date_modify as DateTime object October 22, 2022 by Tarik Here is what I use. First day of the month: date('Y-m-01'); Last day of the month: date('Y-m-t');