Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating number of days between dates with AS400 format

Status
Not open for further replies.

laina222

Technical User
Sep 7, 2001
172
US
Hello all,
I need some help calculating the number of days between two dates. I'm working with the AS400 so all of our dates are formated as YYYMMDD, like today's date would be 1040810. I have two dates I'm using that were originally formatted like this - I can reformat them to appear as DD/MM/YYYY, which I've done, and then I tried to use the "Days Between" function, but it tells me I'm using the wrong data types. Is there another way to calculate the days between two dates? Or, if not, how can I format my dates correctly so Business Objects will accept them?
Thanks!
 
laina,

How dit you reformat the 1040101-date? The way it should be done is by <DATE>*1900000 and after this change your format.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top