Time ago function using C#

Sometimes when you are building a website or an mobile application, you need to display date and time in a user friendly way. Showing relative time is a good option. Social networking sites like Facebook and Twitter use a simple function which enables them to show relative time. This can be used for comments and other from of communication to tell the time ago instead of the exact time which might not be correct to some one in another time zone. Here’s how it can be done in C#.

Refer to this post if you want to do it using PHP.

Vivek Maskara

I am pursuing BTech in Software Engineering from Delhi Technological University. I develop apps, create websites and blog about my app experiences.

Read more:
How to create your first Windows Phone app
How to change the App name and Tile name of your Windows phone app
Data binding in Windows Phone app – One way binding