Skip to content

A small jQuery plugin that converts a date to a format similar to what Facebook uses

Notifications You must be signed in to change notification settings

hermanschutte/fancyDate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

fancyDate

A small jQuery plugin that converts a date to a format similar to what Facebook uses

Usage:

$('#myDate')
	.fancyDate(new Date());

Would produce: Just Now

$('#myDate')
	.fancyDate(new Date("September 2, 2011 11:13:00"))
	.css('css', 'red');

Would produce a red colored: 3 minutes ago depending on the current date obviousely :)

$('#myDate')
	.fancyDate(new Date("September 23, 2010 10:31:00"));

Would produce September 23, 2010

About

A small jQuery plugin that converts a date to a format similar to what Facebook uses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published