Another newbie quesiton ... This is very basic however I have to ask, because I'm new to this. I need help with a Daily Business week (M-F)report that will calculate the date for yesterday something like the example below that is a weekly fomula. SET BUSDAY = _MTWTF_ DEFINE FILE TABLENAME CDATE/YYMD=&YYMD; NDATE/YYMD=DATEADD ( CDATE, 'D', -5 );BDATE/YYMD=DATEMOV ( NDATE, 'BOW' );EDATE/YYMD=DATEMOV ( NDATE, 'EOW' ); END WHERE ( ONDATE GE BDATE AND ONDATE LE EDATE ); After reading the links, I still need help..... https://forums.informationbuilders.com/eve/forums/a/...201067331#5201067331https://forums.informationbuilders.com/eve/forums/a/...631097331#3631097331This message has been edited. Last edited by: <Mabel>,
July 18, 2005, 08:33 PM
Francis Mariani
If you're trying to calculate yesterday's date from a YYMD date field, all you have to do is subtract 1 from the date.