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
WilliamShrewsburyWilliamShrewsbury 

Custom field pulling wrong date

On our opportunity page when it is marked closed won and paid it is changing the paid date to the day before at 7:00 pm.  Can be edited but trying to figure where and why it is pulling the day before.  Has anyone run into anything like this or have any ideas?

SabrentSabrent

How is  Paid_Date populated?

If you have a workflow, check Field Update formula value. 

 

 

CharlyGCharlyG

Hi

 

Are you using the Opportunity Close Date as your Paid Date?

 

Regards

 

Charly

WilliamShrewsburyWilliamShrewsbury

Turns out that in within in the class it was using system.Today() instead of system.now() to set the date.  After that was updated it seems to have solved the problem.  Thanks all for the replies