Hi all,
I want to compare two datetimes, and get the amount of seconds left.
I tried
SELECT DATEDIFF(second, GETDATE(),ACTUAL_TRAVEL_START_DTTM) FROM task WHERE task_id = {0}
This one works via the sql query tool. But if I use it in a getdvalue, no value is returned
getDBValue("select CONVERT(TIME,ACTUAL_TRAVEL_START_DTTM - GETDATE()) from task where task_id = {0}", taskid);