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 and last day on the month in C# .Net Safe your Login info Guard Against Request !!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

August 2009
M T W T F S S
« Jul   Oct »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Follow

Get every new post delivered to your Inbox.