+ Start a Discussion
Satish InugantiSatish Inuganti 

What methods can be used for Date Import other than Date.parse();

Hi All,

I have ran into a very typical problem in APEX. My CSV has a en_UK model Date and Org is running on zn_HK_Stroke(China Hongkong Stroke). so while importing it is throwing date error. parse is not able to help me as it is not supporting all locale. Appericiate your help.
Ajay K DubediAjay K Dubedi
Hi Satish,

Click on the below link helpful for you. 

1. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_format_dates.htm
2. https://salesforce.stackexchange.com/questions/144404/convert-date-in-json-to-date-from-string?rq=1

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
Satish InugantiSatish Inuganti
Thanks you Ajay :)