So i have the following string "2013-12-10 23:33:05"
when i do var d = new Date("2013-12-10 23:33:05");
in jsfiddle. http://jsfiddle.net/38TuV/1/
d contains the right object and has no issue.
however in my sites when i do
var date = '2013-12-10 23:33:05';
var d = new Date(date);
d is Invalid Data. whats even weird if you'll look in the fiddle, i also made that same copy as the second example and it seem to work
This is weird, its probably something specific to my page however i am logging data
and it prints '2013-12-10 23:33:05' so i dont know ... Any ideas?