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
lakshmi25lakshmi25 

how to get the correct date& time

i created one object&created one record after 5 min i modified that record .

if i queried  that created , modified Datetime different from actual created,modified DateTime. how to get both are same?

sourav046sourav046

You must have done something wrong .

Try this in Workbench

Select SOQL query from picklist and then select your desired object .

In query put your fields like Name,Created Date,Last modified by date .

 

Now create a record and query it using workbench  .Note down the Created date and Last modified date .

After 2mins  Edit the record .Query the same again using workbench .

 

If you still rely on previous result then you are wrong .Workbench does not refresh itself until you refresh it .