Get the first day of the month and the last day of the month ?

Below is the error code

// Get the first day of the month
kptDTPickerTo.Format = DateTimePickerFormat.Short;...