$dateiso function

$dateiso(date)

The $dateiso function returns date formatted according to ISO 8601: YYYY-MM-DD. date must be in the standard internal format yyyymmdd: 4-digit year, 2-digit month, 2-digit day of the month.

Parameters

All parameters may contain symbolic references; these are resolved before the function is applied. See Examples below.

date
Date in the format yyyymmdd.

Examples

Here are some usage examples for this function:

<$dateiso(<BuildDate>)>

Returns the build date of the installer in ISO 8601 format.

Note: BuildDate is a standard variable. However, it is not saved in the installer's database by default, so you must set its Include in installer attribute to use it in the installer.

<$dateiso(<$dateadd(<BuildDate>, 30)>)>
Returns the date 30 days after the installer's build date in ISO 8601 format. The $dateadd function adds the requested number of days (or months, years).