Difference between two dates

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ravij
Premium Member
Premium Member
Posts: 170
Joined: Mon Oct 10, 2005 7:04 am
Location: India

Difference between two dates

Post by ravij »

Hi,

I want to calculate the no. of days between two dates. Is there any built in function in DataStage server edition for that?

Thanks in advance.
Ravi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes. Convert both to internal format and subtract. Search the forums for examples of the IConv function to perform the conversion.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply