In I.E. 11, in the console window, if I type new Date().toLocaleString()
, I get something like "2/4/2016 9:12:05 AM". However, if I add .length
, I get 32. The string is 19 "readable" characters, so what's up with the 32 and is there an option I can invoke that will give me a string of length 19?
If I type new Date(new Date().toLocaleString())
, I get [date] Invalid Date, whereas if I type new Date(new Date("2/4/2016 9:12:05 AM"))
I get a legitimate date.
My locale is "en-US".