Home
Analytics
Subtracting Hours from Date Time
kpelzer29
How could I subtract a certain number of hours from a DateTime value? I noticed there is a BIRT function called addHour, but is there a way to subtract hours?
Find more posts tagged with
Comments
rihanna
Have you tried to put minus number in addHour function?
arunkumarb
HI,
Can you try with the following function:
BirtDateTime.diffHour(source:DateTime,target:DateTime).
Regards,
Arun
kpelzer29
That worked! Thank you!<br />
<br />
<blockquote class='ipsBlockquote' data-author="'rihanna'" data-cid="80060" data-time="1310595837" data-date="13 July 2011 - 03:23 PM"><p>
Have you tried to put minus number in addHour function?<br /></p></blockquote>