using "new Date" function of javascript in my service is not providing me with the desired output
I have this function which takes lastVisitTime of type string.
string date value is "2024-11-12 10:00:01"
result of code when compiled on js compiler
let dateFromString = new Date("date in string");
output ->
2024-11-12T10:00:01.000Z
output type is
object
result of code when thingworx service is executed
let dateFromString = new Date("date in string");
output -> invalid date
output type is
object
could someone help me with this I want to convert my date string to date.
Thanks in advance.

