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

Partialy inspired by Ruby DateTime Extensions
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

Download from Nuget http://nuget.org/List/Packages/FluentDateTime

The latest build (including the Silverlight version of the library) can be found here: 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 Oct 17 2011 at 11:14 PM by SimonCropp, version 26
Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.1.11.18365