You need to sign in to do that
Don't have an account?

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...
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