×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Diego Zanandrea
Added: Nov 25, 2017 6:32 PM
Views: 2647
  1. var dt = new Date();
  2. var actionDate = (1900 + dt.getYear()) + '-' + dt.getMonth() + '-' + dt.getDay();
  3. actionDate = actionDate + ' ' + dt.getHours() + ':' + dt.getMinutes() + ':' + dt.getSeconds();