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
GalldorOzGalldorOz 

Datetime.now(), testing.

Hello guys, i have two issues, exist, some alternative to test createdDate, and datetime.now() as a parameter.
Thx
Regards;

Matheus

Eric_HDCEric_HDC

Can you provide more color about what you are looking for..perhaps a use case or sample code that is not working, and what you are trying to accomplish?

Subhani_SFDCSubhani_SFDC

Hi Matheus,

 

Is you're looking to create a field as Created Date, in salesforce then create a forumla field as 

 

DATEVALUE(CreatedDate)

 

Here is more infomation on how to use DATEVALUE and other Formula Operators and Functions
 
 

Please mark my answer as a solution if this works for you. If it was helpful so it is available to others as a proper solution.

 

Thanks
Subhani
Salesforce Certified Developer
www.mydbsync.com