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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Date SI_STARTTIME Variable to yyyymmddhhmmss

Status
Not open for further replies.

levette

Programmer
Feb 8, 2007
2
US
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.

Thanx
 
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.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top