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: , .

Data transfer Excel to mysql in C# .net Get first day and last day year in C# .net

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.