Get first day and last day on the month in C# .Net
August 16, 2009 at 4:08 am Leave a comment
First Day
dtPickerDtFrom.Value = new DateTime(Convert.ToInt32(nMupYear.Value), Convert.ToInt32(cBxMonth.SelectedIndex + 1), 1)
Last Day
dtPickerDtTo.Value = dtPickerDtFrom.Value.AddMonths(1).AddDays(-1);
Advertisement
Entry filed under: C#. Tags: First day month, last day month C#.

Trackback this post | Subscribe to the comments via RSS Feed