A set of (Ruby inspired) C# Extension Methods for easier and more natural DateTime handling and operations in .NET.

Partialy inspired by Ruby DateTime operations and functionality

Allows you to write cleaner DateTime expressions and operation. For example your code can look like this:

DateTime.Now - 1.Weeks() - 3.Days() + 14.Minutes();
DateTime.Now + 5.Years();
3.Days().Ago();
2.Days().Since(DateTime.Now);
DateTime.Now.NextDay();
DateTime.Now.NextYear();
DateTime.Now.PreviousYear();
DateTime.Now.WeekAfter();
DateTime.Now.Midnight();
DateTime.Now.Noon();
DateTime.Now.SetTime(11, 55, 0);

(See Unit Tests in the project for more details).

Downloading

The latest build will be at this CodeBetter link

Not that these builds, while passing all tests, may not be as stable as those taken from the Downloads page. They will however have all the latest bug fixes and features.

Contributing

If you want to contribute to the project contact user spavkov over CodePlex
Last edited Sep 9 at 8:16 AM by spavkov, version 19

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987