I am using Crystal Reports XI, and I would like to know if there is anyway to give the report the previous day's date? I dont have any clue where to start.
Currentdate-1 should give you yesterday's machine date. There is also a DateAdd function, but days are assumed as a default.
If you put this in a formula field, it can then be displayed in any format you like. ToText allows fancy date formatting, or right-click and format field.
Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.