This code shows you how to retrieve the month”s first day for a date.

Source