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
NarenKNarenK 

Getting Previous Date based on current date

Hi All,

 

In Saelsforce how can I get a previsous date using the current data(i.e datetime.now()).

 

Any help on this regard is really aprreciated.

 

-Narendra

Best Answer chosen by Admin (Salesforce Developers) 
NarenKNarenK
We can use YESTERDAY literal to do this.