GetDateStringOrMaskFromUDC

Format Date To String

Minor Business Rule

Object Name: B34A1000

Parent DLL: CMFG

Location: Client/Server

Language: C

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. 



Data Structure

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 NameData ItemData TypeReq/OptI/O/Both
szDateformatFRMTcharREQINPUT

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 
this field blank, the system displays dates based on the settings of the operating system on the workstation. With NT, the Regional Settings 
in the Control Panel control the settings for the operating system of the workstation. For World Software, the following date formats are valid: 
DMY, MDY, YMD. EMD is not a valid date format.

jdDateToConvertDRQJJDEDATEOPTINPUT

The date that an item is scheduled to arrive or that an action is scheduled for completion.

szConvertedDateVC10AcharOPTOUTPUT

This is a generic field used as a work field in Everest.

szFormatMaskVC05AcharOPTOUTPUT

This is a generic field used as a work field in Everest.

Related Functions

None

Related Tables

None