added method to get the first day of the month of a date