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

Formatting DateTime fields in Apex Explorer...

Is there way to format a dateTime field in Apex Explorer?  I want to be able to see the milliseconds information for the CreateDate and LastModifiedDate?


Here is a sample SOQL:


Select l.CreatedDate, l.Id, l.LastModifiedDate, l.ImportId__c

from Lead l

where id = '00QQ00000015reWMAQ'




You can use the format() method of the DateTime type to choose what is and isn't displayed. The reference can be found here: