### CurrentDateTime

Basic and Crystal syntax.

##### Returns

DateTime Value

##### Action

CurrentDateTime returns the current date and time on a report. The date and time is taken from your computer's internal clock.

##### Typical Uses

Use CurrentDateTime any time you want to stamp your report with the current date and time.

##### Examples

The following examples are applicable to both Basic and Crystal syntax:

`CurrentDateTime`

Returns 1998/07/04 4:45:18, if you begin printing your report at 4:45:18 on July 4, 1998.

`CurrentDateTime`

Returns 1996/12/11 17:14:33, if you begin printing your report at 17:14:33 on December 11, 1996.

##### Comments

- The date and time formats are determined by the settings in the International or Regional Settings control panel.
- CurrentDateTime produces the same result as the formula:

`CDateTime(CurrentDate, CurrentTime)`

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