Get first day and last day year in C# .net
August 16, 2009 at 4:13 am Leave a comment
nMupYear.Enabled = true;
DateTime _From = new DateTime(Convert.ToInt32(nMupYear.Value),1,1);
DateTime _to = new DateTime(Convert.ToInt32(nMupYear.Value),12,31);
dtPickerDtFrom.Value = _From.Date;
dtPickerDtTo.Value = _to.Date;
Advertisement
Entry filed under: C#. Tags: Get first day, last day on the year C# .net.

Trackback this post | Subscribe to the comments via RSS Feed