GetDateAndTime()
Summary
Determines the current date and time according to the system clock.
Syntax
value = GetDateAndTime()
Returns
A string indicating the current date and time, in the form: Wed Oct 19 10:48:42 1994.
Notes
The returned value is a string exactly 24 characters long.
You can create a DateTime compound variable with the current date and time by calling CreateDateTime() with no arguments.
The Compound Variables help page lists methods available to operate on the DateTime data type.
Example
ShowMessage(GetDateAndTime())
See Also
| Function | Summary |
|---|---|
| CreateDateTime() | Creates a DateTime compound variable |
| DayOfWeek() | Converts a date to a day of the week |