Thursday, March 26, 2009

Dates and AJAX Calendar Controller

It would seem that the following are trivial matters but I found some enlightenment today and I thought I share it with the world.

1. The Date.Today function can be used to find dates in the past and in the future.

Eg: finding what the date is for tomorrow

Tomorrow = Date.Today.AddDays(1.0)
Yesterday = Date.Today.AddDays(-1.0)

There is also the AddTicks, Seconds, Minutes, Days, Months and Years that you can use to get a date in the future or past.

2. The Calendar Extender in AJAX.
I wouldn't want to blog much about this as much has already been said at the location below.

Tone's blog

No comments:

Post a Comment