Script Function: Checks if the date is valid
VALID_DATE(Date)
Syntax |
Description/Format |
---|---|
Date |
Indication of a date in the format "YYMMDD" or "YYYYMMDD". Format: script literal or script variable It is also possible to specify a different date format. Do so by entering the required date format, then enter a separator (: or ;) and afterwards the date. Indicating a date format is optional. |
Return codes |
---|
"Y" - The date is valid |
Optionally, you may specify a particular Date Format. The default Date Formats to be used are "YYMMDD" or "YYYYMMDD". A colon or semicolon may be used as a separator between Date Format and Date.
If return codeThe value that represents the result of tasks and script functions. "N" is supply, the script elements for error handling may help to analyze the occurred error.
The example checks if the year 2001 is a leap year. The result (N) is output in the activation protocol.
:SET &RET#=VALID_DATE("DD.MM.YYYY:29.02.2001")
:PRINT &RET#
See also:
Script element | Description |
---|---|
Checks whether or not a date is included in a calendar keywordThe attribute of a Calendar object that defines which days included in the calendar. |
|
Checks if a time is valid |
Script Elements - Date and Time
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |