Current time formatting with Javascript

A JavaScript Date has several methods allowing you to extract its parts: getFullYear() – Returns the 4-digit yeargetMonth() – Returns a zero-based integer (0-11) representing the month of the year.getDate() – Returns the day of the month (1-31).getDay() – Returns the day of the week (0-6). 0 is Sunday, 6 is Saturday.getHours() – Returns the hour of the day (0-23).getMinutes() – … Read more