DATETIME2STR
Usage
TIBCO iProcess Workspace (Browser)
TIBCO iProcess Workspace (Windows)
Convert iProcess Engine date and time format to the given format.
Syntax
DATETIME2STR (date, time, format)
where:
date is a date to be converted to the format.
time is a time to be converted to the format.
format is a text string containing the required conversion format.
The following table lists few example date time formats.
Example |
|
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
The following table lists the allowed date time specifiers and their meaning.
Specifier |
Meaning |
---|---|
|
Name of the day of the week, can be a full name or an abbreviation |
|
Same as |
|
Month name, can be a full name or an abbreviation |
|
Same as |
|
Date or time, in the format of the locale |
|
Century
number |
|
Day of the
month |
|
Date format,
same as |
|
Same as |
|
2-digit year
portion of ISO week date |
|
4-digit year portion of ISO week date. Can be negative |
|
Same as |
|
Hour in
24-hour format |
|
Hour in
12-hour format |
|
Day of the
year |
|
Month
|
|
Minute
|
|
2-digit year
|
|
4-digit year. Can be negative |
HH:MM:SS
format always returns HH:MM:00
.Returns
A formatted string with date and time format mentioned in format.
Example
This example returns !19/10/1992!
, #08:23#
in ”%Y-%m-%dT%H:%M:%S
” format.
DATETIME2STR (!19/10/1992!, #08:23#, ”%Y-%m-%dT%H:%M:%S”)
returns "1992-10-19T08:23:00
"