DateTime.Format
The DateTime Control Object that is returned by the AddDateTime function has a Format property. The Format property can be used to define how Date and Time values are displayed.
Syntax |
ControlObject.Format = DateTime Format Where ControlObject. is the name of the variable (declared in your script) that is used to store the DateTime Control Object that is returned by the AddDateTime function. |
Description |
Use to define how Date and Time values are displayed. |
Arguments |
DateTime Format {string} This string sets the date and time format and consists of a combination of the following characters:
|
Example:
DateTime1.Format = "d/MM/yyyy"
Where:
- DateTime1 is the name of the variable used to store the DateTime Control Object that is returned by the AddDateTime function (which would be defined earlier in the script)
- "d/MM/yyyy" sets the date to be displayed as day of month with no leading zero, then month with leading zero, then a four digit year, for example, "5/06/2006" sets the date to 5th June 2006.