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 ArindamNayak
Azure Mobile Service: (here after refer as AMS) provides ready to use service for building mobile apps ( android, windows app, iOS) or simple javascript based App. If you planning to build a mobile App having cloud as backend, and you are planing to start directing building App, then it is perfect c
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

Discussions

by khoirom on Article "Time Period Library for .NET"
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...

All Articles