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 Tomer Shamam
Blendability Part I – Design time ViewModel

Latest Articles

by George Jonsson
Two ways to serialize and deserialize a property of type TimeSpan to XML
by Bahrudin Hrnjica
Few months ago I wrote blog post about how to run code daily at specific time. I dint know that the post will be the most viewed post on my blog. Also there were several questions how to implement complete example. So today I have decided to write another post, and extend my previous post […]
by Enigmatic Texan
Join me for an adventure in time zone conversion.
by Jani Giannoudis
Get available time periods, restricted by a maximum usage count.


by goodEinstein on technical blog "How to run code daily at...
by Jari Pennanen on Article "Time Period Library for .NET"
by Jari Pennanen on Article "Time Period Library for .NET"
by Member 11132379 on Article "Time Period Library for .NET"
by Enger Tower on Article "Time Period Library for .NET"

All Articles