I am trying to do exactly what this SO topic does, but it is not working and have no idea why.
My version is the following:
select convert(varchar, dateadd(ss, @tracker, 0), 114)
where @tracker
is just an INT
variable that holds a certain number of seconds.
The error I get is: Function DATEADD invoked with wrong number or type of argument(s).
Appreciate any help.
I am using Sybase.