Date format dont work


#1

Hi

Can anyone help me with:

if(chatdate == "") { var thedate = new Date("<YYYY/mm/dd HH:MM>"); }

I insert: “date” : ISODate(“1970-01-01T00:00:00.000Z”),

What is wrong with it?


#2

Take a look at the docs for Date