Skip to main content
I need to convert a datetime field to a number (specifically epoch time).  Does anyone know how to do this in a formula?

 

Ex: 1/26/2017 17:21:56 to 1485451316
3 Antworten
  1. 26. Jan. 2017, 17:35
    So something like

     

    DateType = Formula

     

    Result = Number 

     

    Formula = 

     

     

    (DateTime_1__c - DATETIMEVALUE( "1970-01-01 00:00:00" )) * 86400