| Reference information | |
|---|---|
| Applies to | Tarma Installer, Windows Installer |
| Related topics | InstallDate, InstallTime, Time, System information variables |
Variable that is set to the current date on the target system when the installation starts. The date is set according to the local timezone.
Note: The resulting text string may contain slashes and other characters that are not allowed in file, folder, shortcut, and registry paths or names. Therefore, you cannot safely use the Date variable as part of these paths or names. If you need a date that is safe to use in file, folder, or registry paths, you can use the InstallDate variable instead. That variable always returns the date in YYYYMMDD format, which also makes it suitable for sorting.
Windows Installer uses the format MM/DD/YYYY (2-digit month, 2-digit
day of the month, 4-digit year) for this variable, as is common in North America.
Tarma Installer uses the short date format as set in the installing user's
regional preferences for this variable.
| Usage | |
|---|---|
| How to set | Do not set this variable; it is set by the installer. |
| How to use | You can refer to this variable as <Date> (Tarma native syntax, preferred) or [Date] (Windows Installer syntax). |