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
neshnesh 

convert date time to date format----field update--workflow rule...

Filed name:status date--Data type --dateime....i want to update this field -current date.. when i set formula -  today () or datimevalue(today()) or ... it shows error..incompitable datatype.........how to convert date time to date format....please help me

souvik9086souvik9086

Date.valueOf() not working? You can do that using this.

VennilaVennila
Hi,
Try this in formula, Datevalue(Fieldname).

If you try this coding, please try this way.
date.newinstance(fieldname.year(),fieldname.month(),fieldname.day())