# Assumes Jan is month 0, Feb is month 1, etc $month = int($month / 3) * 3; $day = 1;