0

The Material2 Datepicker returns a ISO Format: "2018-05-01T22:00:00.000Z"

I cant find a native function to konvert this to a timestamp. (for birthdate i dont need any timezone informations) The only solution i found was with moment.js... But i really need to install a complete library only to konvert the ISO format to timestamp?

There is no option to tell the datepicker that i want the data direct as timestmap: https://material.angular.io/components/datepicker/examples

Budi
  • 678
  • 2
  • 6
  • 27
  • Hmm i dont want to convert them to milliseconds... ;) – Budi May 17 '18 at 18:00
  • 1
    Did you try `new Date("2018-05-01T22:00:00.000Z").getTime()` ? – ibenjelloun May 17 '18 at 18:09
  • 1
    damn i feel really bad now... Sorry but i was so sure that i tryed this allready... i dont know what i try in last 2 hours that i miss this one... Sorry for the mistake, i mark it as solved. – Budi May 17 '18 at 18:11

0 Answers0