oceancloud
06/20/2020, 12:20 AMGeorge McMullen
06/20/2020, 2:46 AM{datetimefiels}-to_date('1-1-1970 00:00:00','MM-DD-YYYY HH24:Mi:SS'))*24*3600
oceancloud
06/22/2020, 4:16 PMoceancloud
06/22/2020, 4:44 PMoceancloud
06/22/2020, 4:44 PMGeorge McMullen
06/22/2020, 4:49 PMGeorge McMullen
06/22/2020, 4:49 PM({datetimefiels}-to_date('1-1-1970 00:00:00','MM-DD-YYYY HH24:Mi:SS'))*24*3600
George McMullen
06/22/2020, 4:50 PMGeorge McMullen
06/22/2020, 4:51 PMCASE
WHEN {datetime1} > {datetime2}
THEN 1
ELSE 0
END
George McMullen
06/22/2020, 4:52 PMbattk
06/22/2020, 7:39 PMbattk
06/22/2020, 7:43 PM{datetime1} - {datetime2}
should give a difference in days which you should be able to convert to your desired unitsbattk
06/22/2020, 7:43 PMbattk
06/22/2020, 7:48 PMCAST ({datetime1} AS DATE) - CAST ({datetime2} AS DATE)
oceancloud
06/23/2020, 2:51 AMGeorge McMullen
06/23/2020, 4:46 AM