Practice how to get year, month, date and time separately in JavaScript

JavaScript logo JavaScript Online Editor