Click here to Skip to main content
11,584,208 members (65,226 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 ngh1688 on Article "C#: A Better Date-Masked Text Box"
by Rooka on Convert date from Hijri Calendar to Gregorian...
by Member 10969086 on Analog Clock Component
by Bram van Kampen on Time64 - 64 bit Times for 32 bit Windows Apps

All Articles