I want the Date in this format(13 May 2021,11:48:25 pm). I tried the below snippet but it didn't work for me.
console.log(new Date("Thu May 13 2021 23:48:25 GMT+0530 (India Standard Time)")
.toLocaleString("en-IN", {timeStyle: "medium", dateStyle:"long", day:"2-digit", month:"long", year:"numeric"}))
Output: 13 May 2021
When I remove the day,month and year parameters I get the below output
console.log(new Date("Thu May 13 2021 23:48:25 GMT+0530 (India Standard Time)")
.toLocaleString("en-IN", {timeStyle:"medium", dateStyle:"long"}))
Output: 13/5/2021, 11:48:25 pm
How do i print the output in the desired format?