### PrintDate

Basic and Crystal syntax.

##### Returns

Date Value

##### Action

PrintDate inserts the date the report is printed as a field in a formula.

##### Typical uses

You can use this function any time you want to print the date of printing on the report, or to condition something in the report on the print date.

##### Examples

The following examples are applicable to Crystal syntax:

`PrintDate`

Creates a field containing the date the report is printed that you can place on your report. Using this formula is the equivalent of using the PrintDate field in the Special Fields folder in the Field Explorer.

If PrintDate >= CDate(1992,01,01) Then
"Please excuse the delayed report."
Else
""

Prints the message apologizing for the delay if the report prints after January 1, 1992, and prints nothing if the report prints before that date.

##### Comments

The PrintDate function retrieves a value from the setting established in the report via the Set Print Date/Time command on the Report menu. By default, this value matches the settings in the Windows Date/Time control panel unless changed by the user.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com