I'm creating some parsers and was doing tests to develop Date.
This code:
value = '2015-12-31 23:16:00'
value = value.replace(/(\d{4}-\d{2}-\d{2}) ?(\d{2}:\d{2})?(:\d{2})?.*/, '$1T$2$3');
value = value.replace(/T$/, '');
value = valu...
asked by
01.07.2015 / 20:07