var d = Date("12:00 AM")
returns as a date just fine, however when trying to create an instance of it new Date("12:00 AM")
it returns 'Invalid date'.
I found a solution here, using moment.js, which works fine, but I would like know why getting 'Invalid Date' when using 'new Date()'
Thanks