robert fuschetto Posted November 6, 2023 Author Share Posted November 6, 2023 Sorry...I want to put yesterdays date in the page header, Ie Report Date: 11/6/2023, Data thru: 11/5/2023.I was able to get todays date in a DEFINE ...as I recall: TODAY('A10')...I tried some functions to get yesterdays date but there are no examples I have been able to find as to what function to use and parameter values....I was thinking DATEADD.... Link to comment Share on other sites More sharing options...
Patrick Huebgen Posted November 6, 2023 Share Posted November 6, 2023 Use this in a profile (master file profile, universal profile, server profile)-SET &&D_YESTERDAY = DATECVT(DATEADD(DATECVT(&YYMD, 'I8YYMD', 'YYMD'), 'D' , '-1'), 'YYMD', 'A8YYMD');If you do so you can simple add&&D_YESTERDAY into your report/chart header Link to comment Share on other sites More sharing options...
Patrick Huebgen Posted November 6, 2023 Share Posted November 6, 2023 Or if you want the DEFINEDEFINE FILE CAR D_YESTERDAY/YYMD =DATEADD(DATECVT(&YYMD, 'I8YYMD', 'YYMD') , 'D', -1); END GRAPH FILE CAR SUM SALES ACROSS COUNTRY HEADING "<D_YESTERDAY" END Link to comment Share on other sites More sharing options...
robert fuschetto Posted November 6, 2023 Author Share Posted November 6, 2023 THANKS! Link to comment Share on other sites More sharing options...
robert fuschetto Posted November 21, 2023 Author Share Posted November 21, 2023 THANKS ALL...I got what I need and more. Happy Holidays. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now