JavaScript Date Formatting


/ Published in: JavaScript
Save to your folder(s)

Format a date into a string using several string variables.

Usage:
(new Date("6/6/2011")).format("%W, %B %d%o, %Y");

Result:
Monday, June 6th, 2011

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.