System i Resources
enskill.com

 

Onsite Classes
Expert System i training comes to you! RPG, SQL, WDSc and more.
 

DVD Training
Self-paced RPG IV classes and labs on your schedule.
 

System i Books
from leading System i authors.
 

e-Learning
Live instructor, no travel. Attend from your office or home.
 

Date Formats

Option Description Format Valid Separators Edited Field Length Example
*ISO International Standards Organization yyyy-mm-dd - 10 2007-12-31
*USA IBM US Standard mm/dd/yyy / 10 12/31/2007
*EUR IBM European Standard dd.mm.yyyy . 10 31.12.2007
*JIS Japanese Industrial Standard yyyy-mm-dd - 10 2007-12-31
*YMD Year/month/day yy/mm/dd / - , . &(blank) 8 07/12/31
*MDY Month/day/year mm/dd/yy / - , . &(blank) 8 12/31/07
*DMY Day/month/year dd/mm/yy / - , . &(blank) 8 31/12/07
*JUL Julian yy/ddd / - , . &(blank) 6 07/365

The following formats are valid only with the TEST operation code, and with the %DEC and %DATE functions, for use with legacy date formats.

Option Description Format Valid Separators Edited Field Length Example
*CYMD Century-year/month/day cyy/mm/dd / - , . &(blank) 9 107/12/31
*CMDY Century-month/day/year cmm/dd/yy / - , . &(blank) 9 112/31/07
*CDMY Century-day/month/year cdd/mm/yy / - , . &(blank) 9 131/12/07
*LONGJUL Long Julian yyyy/ddd / - , . &(blank) 8 2007/365
*JOBRUN Format determined by job description

Index | HomePage | Programming | RPG IV | Date Formats