Ok so I'm seeing some weird behavior that has me stumped. I thought adding or subtracting 2 datetime fields in a saved search gives you a decimal ( I want to be able to say that an hour has passed, so {now} - {otherdatetime} )
However no matter what I do the search renders the value as some weird date time that looks like this
+0000000004:38:35.000000
and won't let me do the logic I need. What am I missing ?
b
battk
08/22/2022, 4:53 AM
in sql the difference between 2 timestamps is an interval
battk
08/22/2022, 4:54 AM
the difference between 2 dates is a number
battk
08/22/2022, 4:55 AM
either cast your timestamp as a date or use toDate
p
pmendola
08/23/2022, 2:21 AM
i didnt think netsuite supported cast, generally i wouldnt ask for this but assuming {now} and {otherdatetime} are my 2 datetime fields, can you maybe help with a sample saved search formula?
pmendola
08/23/2022, 2:21 AM
nevermind the cast seemed to have worked actually? 😂