Check an example:
// some date, used to show the month and year in Label1:
DateTime some_date = new DateTime( 2024, 9, 17 ); // 17-September-2024
// for Label2:
DateTime first_day = new DateTime( some_date.Year, some_date.Month, 1 ); // 1-September-2024
// for Label3:
DateTime last_day = first_day.AddMonths( 1 ).AddDays( -1 ); // 30-September-2024