Click here to Skip to main content

Date and Time

Great Reads

by Luc Pattyn
The code snippet below returns the first Thursday of a given year without iterating anything.DateTime FirstThursday(int year) { DateTime dt=new DateTime(year, 1, 1); return dt.AddDays((11-(int)dt.DayOfWeek)%7);}The formula used may seem a bit bizarre, it computes the distance...
by Nitesh Luharuka
How to Convert a Date Time to “X minutes ago” in C#
by John Atten
John on Google CodeProjectLet’s face it. Managing date information within the .net framework (or any framework, really . . . Java is not much better) is a pain the the ass. Really. What makes it even worse is managing user data entry of date information. If that isn’t bad enough, there i
by Ivan Krivyakov
Difference between 'Resource' and 'Embedded Resource' Build Actions described

Latest Articles

by Jacek Gajek
A TimeSpan wrapper class which uses a System.TimeSpan as a backing field.
by Víctor Sumozas
Load login page debug mode. Save time.
by Ivan Krivyakov
Difference between 'Resource' and 'Embedded Resource' Build Actions described
by John Simmons / outlaw programmer
Extension method to determine fiscal date

Discussions

by Paw Jershauge on Seagate Date Code Calculator
by Caramelindo on Article "Time Period Library for .NET"
by Tomer Weinberg on tip/trick "Code to Turn your TimeSpan into...
by Tomer Weinberg on tip/trick "Code to Turn your TimeSpan into...
by Jason Bradley Smith on Seagate Date Code Calculator

All Articles