Salesforce DATEVALUE Function: Syntax, Examples, and Uses
The DATEVALUE() function in Salesforce converts a Date/Time value, or text in YYYY-MM-DD format, into a Date. DATEVALUE(CreatedDate) returns just the day a record was created, in the viewing user’s time zone, so you can compare it with TODAY(), count days, or group records by day. The time-zone part is where most formulas go wrong, … Read more >>>