Greetings,
When you POST an article on this Forum, it shows it as "Posted in xyz minutes or hours or Days ..... Ago"
I believe it is using a java library called "Pretty Dates".
How do I get that to work in WebMatrix?
cheers,
There are no signs of JavaScript being used to format the display of elapsed time since posting on this site, so my guess is that they either use SQL, or more likely, the .NET TimeSpan structure.
yousaid
Participant
811 Points
334 Posts
What is the Sql or Code for this or is It java?
Feb 07, 2012 05:42 PM|LINK
Greetings,
When you POST an article on this Forum, it shows it as "Posted in xyz minutes or hours or Days ..... Ago"
I believe it is using a java library called "Pretty Dates".
How do I get that to work in WebMatrix?
cheers,
yousaid
Mikesdotnett...
All-Star
154840 Points
19854 Posts
Moderator
MVP
Re: What is the Sql or Code for this or is It java?
Feb 07, 2012 06:22 PM|LINK
There are no signs of JavaScript being used to format the display of elapsed time since posting on this site, so my guess is that they either use SQL, or more likely, the .NET TimeSpan structure.
http://msdn.microsoft.com/en-us/library/system.timespan.aspx
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
pranavkm
Participant
796 Points
106 Posts
Re: What is the Sql or Code for this or is It java?
Feb 07, 2012 06:55 PM|LINK
There's a couple of packages that seem to support this - http://preview.nuget.org/packages?q=relative+datetime.