Find # days between 2 dates in Query 400
I'm looking to do this in the Results area where you do calculations. Can anyone help??? Thanks!!!!!
Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.
Pherrick
20 pts. | May 24 2008 4:11PM GMT
I’m looking to find the # of days between 2 dates in the AS/400 Query 400. I’m guessing it can be done in the results section of the query (where calculations are done). Any ideas????? Thanks!
Alessandro.panzetta
9615 pts. | May 26 2008 9:25AM GMT
Hello Pherrik,
I’m not really familiar with AS400 but I suppose that a DateDiff command should exist, try and search in the manuals.
Gilly400
23625 pts. | May 26 2008 10:17AM GMT
Hi,
You should be able to do this using the DAYS function :-
DAYS(Enddate) - DAYS(Startdate)
Regards,
Martin Gilbert.