โ12-16-2020 01:50 PM
How do you convert this date โ2020-09-01T00:00:00.000โ to this โ20200901โ?
โ12-16-2020 02:04 PM
Iโm double checking, but I think you have to use one of the formats listed in the Parsing a Date example in the documentation.
โ12-16-2020 02:26 PM
@cjhoward18 to the rescue. ๐
Date.parse("2020-09-01T00:00:00.000").toLocaleDateString({"format":"yyyyMMdd"})
โ12-16-2020 02:30 PM
Thanks, will this work with variable?
Date.parse(โ$HIRE_DATEโ).toLocaleDateString({โformatโ:โyyyyMMddโ})
โ12-16-2020 02:31 PM
You shouldnโt need the quotes around the variable, but it should work if itโs a string.