Description |
Converts a date and/or time into the specified format. Used to modify a date value to so that it matches a required format. For example, the application being Automated Workflow may require a date to be input in a specific format such as yyyy dd mm - this action would be used to modify the value accordingly. |
Declaration |
<AMTEXTFORMATDATETIME DATETIMEFORMAT="text" INCLUDEAMPM="yes/no" RETURNRESULT="text" ACTION="text" SPECIFIEDDATETIME="text" SPECIFIEDFORMAT="text" SPECIFIED12HOUR="yes/no" INCLUDEAMPM="yes/no" ADJUSTYEAR="number" ADJUSTMONTH="number" ADJUSTDAY="number" ADJUSTHOUR="number" ADJUSTMINUTE="number" ADJUSTSECOND="number"> |
Example |
<AMVARIABLE NAME="thedate"></AMVARIABLE> |
General Tab Parameters |
Formatted date time: Displays the current format of the date and time. Date time format: Specifies the format that should be used when the date is output. The following characters are used to create a date format: y = year Text, Required Populate variable with result: Specify an already existing variable name to be populated with the formatted date. Text [variable name], Required 12 hour format: Specifies whether hours of the day will be based on a 12 or 24 hour clock. Yes/No, Optional - Default yes Include AM/PM in result: Specifies whether an AM or PM indicator should be added to the end of the formatted date time value. This option is only available when "12 hour format" is specified. Yes/No, Optional - Default no |
Advanced Tab Parameters |
Action: Specifies the source of the date time value to be formatted. .
Text, Optional default (current) Use specified date time: Specifies the date time to format when Action is set to specified. Text , Required if Action is set to specified Will be in the format: Specifies the format that should be applied when attempting to read the date in Specified Date Time. Text , Required if Action is set to specified Prompt message: Specifies the message that should be used on the date and/or time prompt dialog box. Text , Required if Action is set to prompt Prompt type: Specifies whether the prompt dialog box should prompt for the date, the time, or both.
Text [options], Optional - default is "datetime" Adjust: Year: Specifies the number of years the date should be adjusted. A positive or negative number may be used. Number, Optional - default is
"0" Hour: Specifies the number of hours the date should be adjusted. A positive or negative number may be used. Number, Optional - default is
"0" Month: Specifies the number of months the date should be adjusted. A positive or negative number may be used. Number, Optional - default is
"0" Minute: Specifies the number of minutes the date should be adjusted. A positive or negative number may be used. Number, Optional - default is
"0" Day: Specifies the number of days the date should be adjusted. A positive or negative number may be used. Number, Optional - default is
"0" Second: Specifies the number of seconds the date should be adjusted. A positive or negative number may be used. Number, Optional - default is
"0" |