When I call new Date(“11/15/2022, 21:51:00”) in a Realm function, it returns an Invalid Date string; however, when I run it in a JS environment, it works fine.
Hi @Prince_Shrestha1 welcome to the community!
I don’t think presently Atlas functions recognize the form
new Date(“11/15/2022, 21:51:00”).
Is it possible to use the ISO-8610 format instead? e.g.
new Date('2022-11-15T21:51:00') ?