function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Saravanan @CreationSaravanan @Creation 

LWC New Date(String)

Hello All,

Did anyone face this issue with latest release of chrome 89.0.4389.82.

I was having a below code and it was working fine with the chrome verison 88.0.4324.190.

 let newdatevalue = new Date(Intl.DateTimeFormat('en-UK').format(dateValueParam)); 

This line is throwing a error Invalid Date.

1. dateValueParam is a milliseconds. 
2. Intl.DateTimeFormat('en-UK').format(dateValueParam) --> This return a string of 15/03/2021

Thanks in advance!
 
VinayVinay (Salesforce Developers) 
Can you try below troubleshooting steps mentioned using chrome and check if you still see issue?

https://help.salesforce.com/articleView?id=000312846&type=1&mode=1

Thanks,