Click here to Skip to main content
11,436,156 members (62,486 online)

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 edA-qa
Any interface involving touch will inevitably need to know how fast the user is moving their finger. They touch the …Continue reading →
by edA-qa
Being able to make a code change and quickly see the result is critical. The longer we have to wait, …Continue reading →
by Ben M Watson
I was recently debugging a problem that just didn’t make any sense at first. The code looked like this: class App {     public bool IsRunning {get; set;}     private Thread houseKeepingThread;         public void Start()     {         this.IsRunning = true; this.houseKeepingThread = new Thread(Threa
by John Simmons / outlaw programmer
This is an alternative for "Partial DateTime Object Equality"

Discussions

by OldTrain on Convert date from Hijri Calendar to Gregorian...
by Mcshaz on Article "Javascript to determine when DayLight...
by ucarcamagnu on Date and Time in C++
by dragonfly lee on tip/trick "Exchange Date Time between Native...
by Paulo Zemek on technical blog "Get Your Thread...

All Articles