1 | input_Lilian_date | Input | INT4 |
2 | picture_string | Input | VSTRING |
3 | output_char_date | Output | VSTRING |
4 | fc | Output | FEEDBACK |
The Convert Lilian Date to Character Format (CEEDATE) API formats a number representing a Lilian date. The output is a character string such as 1988/07/26.
None.
Picture Characters Used in Picture Strings has a list of valid picture characters, and Examples of Picture Strings Recognized by ILE Date and Time APIs contains examples of valid picture strings.
If picture_string is null or blank, CEEDATE obtains picture_string based on the current job value for the country or region ID (CNTRYID). For example, if the current job value for CNTRYID is US (United States), the date format is MM/DD/YYYY. If the current job value for CNTRYID is FR (France), the date format is DD.MM.YYYY.
This default mechanism makes it easy for translators to specify the preferred date format, and also easy for application programs and library procedures to automatically use this format.
CEE0000 | The API completed successfully |
Severity: 00 | |
CEE0501 | The operational descriptor data type is not valid |
Severity: 30 | |
CEE0502 | Missing operational descriptor |
Severity: 30 | |
CEE2512 | The value for the given Lilian date is not valid |
Severity: 30 | |
CEE2518 | The picture string specification is not valid |
Severity: 30 | |
CEE2522 | Lilian date outside of era |
Severity: 30 | |
CEE2526 | Date truncated |
Severity: 30 | |
CEE9902 | Unexpected user error occurred in &1 |
Severity: 30 |
The inverse of CEEDATE is CEEDAYS. The CEEDAYS API converts character dates to the Lilian format.
If picture_string includes a Japanese era symbol <JJJJ>, the YY position in output_char_date is replaced by "year within Japanese era". Examples of Picture Strings Recognized by ILE Date and Time APIs has an example. Japanese Eras Used by ILE Date and Time APIs When <JJJJ> Specified contains a list of Japanese eras supported by CEEDATE.
If picture_string includes a Republic of China (ROC) Era symbol <CCCC> or <CCCCCCCC>, the YY position in output_char_date is replaced by the year within ROC era. Examples of Picture Strings Recognized by ILE Date and Time APIs has an example. Republic of China Eras Used by ILE Date and Time APIs When <CCCC> or <CCCCCCCC> Specified contains a list of ROC eras supported by CEEDATE.
Sample Output of the CEEDATE API
input_Lilian_date | picture_string | output_char_date |
---|---|---|
148138 |
YY YYMM YY-MM YYMMDD YYYYMMDD YYYY-MM-DD YYYY-ZM-ZD <JJJJ> YY.MM.DD <CCCC> YY.MM.DD |
88 8805 88-05 880516 19880516 1988-05-16 1988-5-16 Showa 63.05.16 (in a DBCS string) MinKow 77.05.16 (in a DBCS string) |
148139 |
MM MMDD MM/DD MMDDYY MM/DD/YYYY ZM/DD/YYYY |
05 0517 05/17 051788 05/17/1988 5/17/1988 |
148140 |
DD DDMM DDMMYY DD.MM.YY DD.MM.YYYY DD Mmm YYYY |
18 1805 180588 18.05.88 18.05.1988 18 May 1988 |
148141 |
DDD YYDDD YY.DDD YYYY.DDD |
140 88140 88.140 1988.140 |
148142 |
YY/MM/DD HH:MI:SS.99 YYYY/ZM/ZD ZH:MI AP |
88/05/20 00:00:00.00 88/5/20 0:00 AM |
148143 |
WWW., MMM DD, YYYY Www., Mmm DD, YYYY Wwwwwwwwww, Mmmmmmmmmm DD, YYYY Wwwwwwwwwz, Mmmmmmmmmz DD, YYYY |
SAT., MAY 21, 1988 Sat., May 21, 1988 Saturday , May 21, 1988 Saturday, May 21, 1988 |
See Code disclaimer information for information pertaining to code examples.
Convert a date from the Lilian format to IBM USA standard format MM/DD/YYYY:
CALL CEEDATE (lildate, 'MM/DD/YYYY', usadate, fc);
Top | ILE CEE APIs | APIs by category |