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 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 Nitesh Luharuka
How to Convert a Date Time to “X minutes ago” in C#
by pwasser
A robust approach to decoding CIM_DATETIME for C++ programmers

Discussions

by Michael N. Haephrati on Date-Time Conversion Utility
by Jani Giannoudis on Article "Time Period Library for .NET"
by Member 10822934 on Article "Time Period Library for .NET"
by mgampi on SystemTime to VariantTime with Milliseconds
by Jani Giannoudis on Article "Time Period Library for .NET"

All Articles