amit_saroha
4 years agoNew Contributor III
Date format problem
Hi,
I have a CSV file containing the dates like ‘16-DEC-2019’ and I am reading the CSV file and inserting it into an Oracle database table but it always errors out because the format desired is a date in format yyyy/mm/dd hh:mi:ss.
I have used the below expression but it returns NULL as well. Can you please help me how to get it corrected?
Date.parse($[‘Date From’]!= null ? $[‘Date From’].toString().substr(0,10) : $[‘Date From’]).toLocaleDateString({“format”:“yyyy/MM/dd HH:mm:ss”})