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

Date formatting

I have another challenge with date formatting. Would anybody be willing to demonstrate how to format a date such as
'Oct 6, 2008' into the SF format of yyyy-mm-dd?

Please look at the format, and valueOf methods in the Date Methods section of the Apex docs.

There you will find how to format your date correctly for your needs.