Salesforce blog for developers with best practices, tips and tricks.
Saturday, March 9, 2019
Converting a DateTime field into a Unix Timestamp with formula field
First, you need a field of type DateTime such as CreatedDate, LastModifiedDate or any Custom Field.
In our example, we will use the CreatedDate Field. The formula is as below.
(CreatedDate - DATETIMEVALUE( "1970-01-01 00:00:00" )) * 86400
This can be used to append to a image url to prevent image cache from browser.
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)