Author Topic: extract function in reportnet  (Read 909 times)

Offline uyravikumar

  • Full Member
  • ***
  • Posts: 17
  • Forum Citizenship: +0/-0
extract function in reportnet
« on: 28 Jul 2006 02:32:34 am »
Hi All,

I am working on a project, i have problem with extract function.

I need to display the Hours:Minutes:Seconds of difference from two dates which is placed in on data item [TIMEDIFF].

I used
CAST(EXTRACT(HOUR,[TIMEDIFF]),VARCHAR(2))||':'||
CAST(EXTRACT(MINUTE,[TIMEDIFF]),VARCHAR(2))||':'||
CAST(EXTRACT(SECOND,[TIMEDIFF]),VARCHAR(2))


The output is 0:34:14. (OR) 0:33:23.3

I want to get the second part as Integer.

Can any body help me..

Thanks in advance

Offline MFGF

  • Never knowingly correct
  • Super Moderator
  • Statesman
  • ******
  • Posts: 3,112
  • Forum Citizenship: +153/-3
  • Cognos Software Muppet
Re: extract function in reportnet
« Reply #1 on: 28 Jul 2006 05:22:35 am »
Hmmm - deja vu.  Must be a glitch in the matrix!

Please see my previous reply to the same question.
Meep!