Date

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 and formatted according to the user's regional short date preferences.

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.

Usage

You can refer to this variable as <Date>. Do not set this variable; it is set by the installer.

Related topics

InstallDate, InstallTime, Time, System information variables