RPGNext
Take Your RPG Development to theNextLevel
Site Links
Home
RPG Programming
xRPG Downloads
xRPG Docs
About This Site
About Me

RPG Gurus
Bob Cozzi
Brad Stone
Scott Klement
Jon Paris

iSeries Links
Alpha Works
Midrange.com
FAQ@Midrange.com
MidrangeServer.com
IBM Docs
iSeries Infocenter
MCPress
Easy400
API Finder

xRPG Core Library Procedures - RNBDATES: createDate()


Receives a string and tries to create a date. The string format is variable.

Usage:

createDate( dateString : {resolveMDY} : {formatPtr} );

Name Type Options Opt/Req Description
dateString 10A n/a Req Any string that should contain a valid date. Format is non-specific: the routine will attempt to determine the format of the sent string. If no valid format is detected then the date returned is d'0001-01-01'
resolveMDY 4A Const Opt Used to resolve preferences when a date string is valid for *MDY, *YMD, or *DMY formats: ex. 010203 - *MDY = 2 Jan 2003, *DMY = 1 Feb 2001, *YMD = 3 Feb 2001 If not sent then *MDY is used to resolve any conflicts.
formatPtr * Const Opt Pointer to a 5A field that will receive the format type that was used to determine the date or '*ERR' if no valid date could be created.
Returns: D n/a n/a The created date or d'0001-01-01' if error.

This site conforms with the following W3C specifications:

Web Essentials

Contact