Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Converting DateTime into Unix Timestamp integer (calculated column & measure)

I see lots of posts on converting a unix timestamp integer into a datetime (timestamp).  How would one take a DateTime value (2018-08-22 10:11:12) and convert it into a a unix timestamp integer (i.e....
  • v-cherch-msft's avatar
    v-cherch-msft
    8 years ago

    Hi Anonymous

     

    You may try to create a column as below.

    Column=Duration.TotalSeconds([Column1]-#datetime(1970, 1, 1, 0, 0, 0))

     

    Regards,

    Cherie