DateTime LastDateOfPreviousMonth; LastDateOfPreviousMonth = Convert.ToDateTime(DateTime.Now.AddDays((-1) * DateTime.Now.Day).ToShortDateString()); txtStartDate.Value = new DateTime(LastDateOfPreviousMonth.Year, LastDateOfPreviousMonth.Month, 1).ToString("MM/dd/yyyy"); txtEndDate.Value = LastDateOfPreviousMonth.ToShortDateString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)