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
evgenykaevgenyka 

Date Format

Hello
I am how do i change date format
I am selecting fields from an object and all the fields come in YYYY-MM-DD fromat
I need to use Oracle Date format YYYY-MM-DD HH:MI:SS
Thank You

Message Edited by evgenyka on 06-17-2007 09:20 AM

ClaiborneClaiborne

Salesforce.com has two kinds of fields - date and date/time. The date fields contain only the date information. A date/time field contains the date and the time in the format you are looking for.

If you are retrieving a date field, you would have to make up a dummy time and append it to the string returned.

Also, all times are stored as Greenwich time (Zulu), so remember to adjust for your location.