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 Ivan Krivyakov
In Visual Studio you can set “Build Action” for a project item to ‘Resource’ or ‘Embedded Resource’, among other things. The difference between the two is confusing, and exact up-to-date documentation is hard to find. (This StackOverflow post is probably the best,
by John Simmons / outlaw programmer
Extension method to determine fiscal date
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 John Simmons / outlaw programmer on tip/trick "Determine Fiscal Date"
by lespauled on tip/trick "Determine Fiscal Date"
by Member 683069 on SystemTime to VariantTime with Milliseconds
by goodEinstein on technical blog "How to run code daily at...
by Jari Pennanen on Article "Time Period Library for .NET"

All Articles