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
RohiniHRohiniH 

How do i set milliseconds in the lastmodifieddate field

i am updating few records[5 records in a for loop], and ALL the records are saved with lastmodified date as 2011-11-02T15:43:56.000Z

 and later i need to print them querying the table in the order of ascending order of lastmodifieddate field.

But it does not print so... as.i need to sort on lastmodifieddate field, i need the timestamp based on milliseconds. How do i set milliseconds in the lastmodifieddate field

 

i explicitly  update each of these records inside a for loop, but it does not have fraction of second captured.

 

for(String seqnsdInput : sequencedInput ){

    doctrckr = mapInputSeqnDocTracks.get(seqnsdInput);

    update doctrckr;

}

Here the lastmodified date is same for all doctrckr object

Kind regards...

 

Manoj Gautam 1Manoj Gautam 1
Hi 
Did you figure this out? i am trying to read the millis info on the createdDate. Seems like sfdc doesn't care about the millis.

thanks
MAnoj