function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sumant KuchipudiSumant Kuchipudi 

How to check Date before Database upsert?

Hi, I'm getting an incoming date field from the the HttpRequest as "Sun Sep 08 00:00:00 GMT 20" and when I upsert the record I get "invalid date: Sun Sep 08 00:00:00 GMT 20". I want to verify this field and remove if its Invalid date before upsert.