current month start date in c# code example
Example 1: c# find start and end of month from object date
DateTime date = ...
var firstDayOfMonth = new DateTime(date.Year, date.Month, 1);
var lastDayOfMonth = firstDayOfMonth.AddMonths(1).AddDays(-1);
Example 2: get day month year from date c#
// can add : or / to seperate dates and time
DateTime.Now.ToString("yyyyMMddhhmmss")