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 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 Mukund Thakker
In this post, we will see how we can convert date time in "X Time ago" format in C#.
by Nitesh Luharuka
Friends, In my previous post, we saw how can we convert a Date Time value to “X Minutes Ago” feature using C#. A user interestingly asked me for a function that can do something similar but for future dates. Today, in this post we will see how we can achieve similar functionality for a future &#8230


by Member 10946909 on Article "Adding Business Days to a Date"
by Member 11054887 on Article "Time Period Library for .NET"
by jfriedman on tip/trick "Obtaining Microsecond Precision in...
by lirco on tip/trick "Obtaining Microsecond Precision in...
by Member 9623869 on Article "Time Period Library for .NET"

All Articles