MONGO DB - Get current Date and time in DD:MM:YYYY:HH:mm:ss without additional data

27 Views Asked by At

When I use Date(), it is giving me a string something like this - Tue Mar 26 2024 11:28:04 GMT+0530 (India Standard Time) But I want something in the format I specified. +530 in the end of that format is also acceptable.

Thanks in advance.

0

There are 0 best solutions below