This is a migrated thread and some comments may be shown as answers.

how to check the date as the end of the month date

1 Answer 16 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Bindu
Top achievements
Rank 1
Bindu asked on 26 Aug 2008, 06:09 PM

Hi all,

I would like to know how to check the date if it is the end of the month date.Is there any property. 

Thanks in advance for all your attempt.

 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 29 Aug 2008, 06:20 AM
Hello Bindu,

You can get the last day of the month using similar approach:
DateTime dt = new DateTime(2009, 2, 15); 
dt = dt.AddMonths(1); 
dt = dt.Subtract(new TimeSpan(dt.Day, 0, 0, 0)); 

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Calendar
Asked by
Bindu
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or