
JavaScript Date Format YYYY (year only)
It prints Year only. i.e. 2014
JavaScript Date Format YYYY-MM or MM-YYYY (year and month)
It prints Year and Month. i.e. February, 2014
JavaScript Date Format YYYY-MM-DD (complete date)
It prints Year, Month and Day. i.e. February21, 2014
JavaScript Date Format YYYY-MM-DD-DayName (date with day name)
It prints Year, Month and Day with Day Name. i.e. February21, 2014 Friday
JavaScript Date Format YYYY-MM-DD hh:mm (date with hour and minute)
It prints Year, Month and Day with Hour and Minute. i.e. February21, 2014 9:18
To include other time formats refer to the previous post: How to Create a Digital Clock in JavaScript?
Related Posts
- How to Detect Visitor's Browser Using JavaScript?
- What are the Different Ways to Redirect Page in JavaScript?
- How To Create Simple Image Slideshow Using JavaScript ?
- How to Create Simple JavaScript Fade Effect Animation?
- Image Slideshow with Navigation Buttons Using Javascript
- How to Create JavaScript Image Slideshow with Links
- Simple JavaScript Fade Effect Animation Using Jquery
- How to Create Simple JavaScript Fade Effect Animation?