You need to sign in to do that
Don't have an account?
Saravanan @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!
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!
https://help.salesforce.com/articleView?id=000312846&type=1&mode=1
Thanks,