JavaScript Date Ago(prettycode.org)

submitted by deverdever(350) 2 years, 9 months ago

In case you hadn't noticed, one of the hip things to do with user-visible timestamps these days is to format them as a how long ago the time was. Instead of seeing a date and time like "08/02/2009 2:41 PM PST," these so-called passed/relative/pretty/friendly dates appear like "2 hours ago" or "1 week ago." Being a hip person myself (hah), I've written a few bytes of code to get these type of dates. One is JavaScript (here), and another is a C# clas

add a comment |category: |Views: 15

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story