jen
03/16/2021, 5:35 PMFormula (Text)
and my formula is sysdate - {custrecord_my_datetime_field} || ''
, which gives me something that looks like +000000000 01:34:12.000000
. Ideally, I want something formatted as follows 0 day(s), 0 hour(s), 1 minute(s), 34 second(s)
or similar. I’ve tried using TRUNC to extract even just the days (e.g. TRUNC(sysdate - {custrecord_my_datetime_field}) || ''
but that just results in an Unexpected Error page when I try to run the search. Any suggestions on how to achieve this?Gregory Jones
03/16/2021, 6:24 PMjen
03/16/2021, 6:27 PMNetsuite Tragic
03/16/2021, 11:07 PMjen
03/16/2021, 11:16 PMjen
03/16/2021, 11:17 PMjen
03/16/2021, 11:17 PMNetsuite Tragic
03/16/2021, 11:22 PMjen
03/16/2021, 11:29 PMNetsuite Tragic
03/17/2021, 12:14 AMNetsuite Tragic
03/17/2021, 12:16 AMWatz
03/17/2021, 6:46 AMextract(day from (systimestamp-{custrecord_datetime})) || ' day(s), ' || extract(hour from (systimestamp-{custrecord_datetime})) || ' hour(s), ' || extract(minute from (systimestamp-{custrecord_datetime})) || ' minute(s), ' || round(extract(second from (systimestamp-{custrecord_datetime}))) || ' second(s)'
Watz
03/17/2021, 6:48 AMWatz
03/17/2021, 7:18 AMjen
03/17/2021, 3:04 PM*1440
thing was directly copied from the link you postedjen
03/17/2021, 3:09 PMsysdate
instead of systimestamp
.