Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

Why Date. parse is not working as expected?

Asked by Ankesh Kumar Jul 19, 2021 1.8K views 1 answer
Share

About this question

I am struggling with an issue where Date. parse method is throwing an exception - "InValidDate". Scenario - A record with date value created in the US (Locale US(English)) and when it fetched in different locale e.g. English(Australia) then it throws an exception. Please help me to resolve the mentioned issue. Why does Date.parse give incorrect results? When to use date.parse?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.