
Converting date using toChar function
Hi All,
I am trying to do calculations on current date as shown below with in IF statement, but the resulting timetsamp is wrong and is always showing as 12:08:24 irrespective of current timestamp value.
Logic:
toChar(
addHours(
$currentTime,
-5
),
'MM-dd-yyyy HH:mm:ss'
)
Thanks,
Srinivas C
Like
Follow
3replies