1.Functional Description
1.1Purpose
This business function can serve two purposes for date conversion using the UDC table 00/DF. A
three-character date code from UDC 00/DF is required and will always be converted to the five-character date
format mask used by the JDE C date API's. This five-character format mask is returned in the data
structure member szFormatMask. In addition, if a JDEDATE-formatted date is input in the jdDateToConvert
data structure member, it will be converted to a string according to the input UDC code.
2.Technical Specifications
2.4Processing
If szDateformat is not blank, use jdeConvertUDCToDateFormat to get the szFormatMask
If jdDateToConvert is not null, use FormatDate and the szFormatMask to convert to a 10-character
(max) string.
D34A1000 - Format Date to String
Data Item Data Structure Description I/O Required Notes
FRMT szDateformat I Y 3-character UDC value from 00/DF
DRQJ jdDateToConvert I If desired, JDEDATE format date to
convert to a string.
VC10A szConvertedDate O 10-character formatted output of
jdDateToConvert
VC05A szFormatMask O 5-character format mask version of the
input szDateFormat, for use by C date API's.
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szDateformat | FRMT | char | REQ | INPUT |
The format of a date as it is stored in the database.
For OneWorld, the following date formats are valid: YMD, MDY, DMY, EMD. If you leave
| ||||
jdDateToConvert | DRQJ | JDEDATE | OPT | INPUT |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
szConvertedDate | VC10A | char | OPT | OUTPUT |
This is a generic field used as a work field in Everest. | ||||
szFormatMask | VC05A | char | OPT | OUTPUT |
This is a generic field used as a work field in Everest. |
None |
None |