How to get the current date/time in Javascript: YYYY-MM-DD HH:MM:SS format
Because I'm tired of having to google it every time. Note that this will be in military time:
new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '');
Because I'm tired of having to google it every time. Note that this will be in military time:
Comments
Post a Comment