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 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 Nitesh Luharuka
How to Convert a Date Time to “X minutes ago” in C#

Discussions

by BillWoodruff on Article "Time Period Library for .NET"
by Simon Andersen on Article "Time Period Library for .NET"
by BillWoodruff on Article "Time Period Library for .NET"
by Member 9174554 on Article "Time Period Library for .NET"
by Jani Giannoudis on tip/trick "Calculate the available time of a...

All Articles