Posted By

krisdb on 01/06/09


Tagged

c-sharp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


Start/End Dates


 / Published in: C#
 

  1. DateTime startDate = new DateTime(DateTime.Now.Year, DateToDisplay.Month, 1);
  2.  
  3. DateTime endDate = startDate.AddMonths(1).AddDays(-1);

Report this snippet  

You need to login to post a comment.