DaysInYear(iYear)
Syntax
%DaysInYear(UInteger)%
Description
Returns the number of days in the specified year.
Parameters
Parameter | Description |
---|---|
UInteger | A 16 bit unsigned integer value (num). The number of bits is controlled by the #Language setting. |
Examples
AML example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Copy
<AMVARIABLE NAME="varDays" VALUE="" />
<AMVARIABLE ACTIVITY="set" VARIABLENAME="varDays">%DaysInYear(2023)%</AMVARIABLE>
<AMSHOWDIALOG>%varDays%</AMSHOWDIALOG>
VB script example
Sub
MsgBox DaysInYear(2023)
End Sub