Forum Discussion
Sowmya_Rayavara
5 years agoNew Contributor III
Hi Shrabanti,
Can you please try with the below date function? Just changed the year format ‘YY’ to ‘yy’
Date.parse(“29-JUN-21 10.07.35.000000 AM”,“dd-MMM-yy hh.mm.ss.SSSSSS aa”).toLocaleDateTimeString( { “format”:“yyyy-MM-dd HH:mm:ss” } )