Professional Documents
Culture Documents
Howtouse Date
Howtouse Date
Table of Contents
Function Name
Source Input Output
Module
B0000127 ReturnTodaysDate None JDE Date
RetrieveDayofWeek,
B0700068, GetDayofWeek JDE Date Day description, i.e.
B4201480 Monday, Tuesday,
….
ConvertStringToDate
B0800013 String JDE Date
MM/DD/YYYY
B0800208 ConvertStringDatetoDateFormat String Date + Date JDE Date
Mask
B3000250 GetMonthDescription Numeric Calendar Month description,
Month i.e. January,
February, ....
B3000260 GetYearDescription Numeric Calendar 4-digit year
Year description
FormatDateFromDMY
B41B0470 String YY, MM, DD JDE Date
B7600920 ConvertNumbersAndDatesToString JDE Date String
ConvertjulianDatetojdeDate
B9100001 Numeric CYYDDD JDE Date
ConvertDateToJulian
B9800210 JDE Date Numeric
YYYYDDD
B9800210 ConvertJulianToDate Numeric JDE Date
YYYYDDD
B4500490 DateConversiontoJulian JDE Date Numeric CYYDDD
B0000200 SixDigitNumerictoDate Numeric CYYDDD JDE Date
B0000200 DatetoSixDigitNumeric JDE Date Numeric CYYDDD
ConvertDateToString
B9800460 JDE Date + Mask String
N1700090 CalculateBeginDateofPeriod Period Number, Period Begin Date,
Company, Fiscal Period End Date,
Year and Century Begin Date of
Fiscal Year, and/or
Period Ending
Dates for all 14
Periods
Back to Top
All dates in the J.D. Edwards database are stored in a JDE Julian format. A date in JDE
Julian format is a six-digit numeric field which represents the century, year and day of the
year. It should be updated using the following rules:
The first digit describes the century. A value of 0 indicates the 20th century
(1900s). A value of 1 indicates the 21st century (2000s);
The second and third digits represent the year (98, 99, 00, 01, etc);
The fourth, fifth and sixth digits represent the day in the year (001 for January 1,
112 for April 21, etc.)
Example:
The date for January 31, 2000 = 100031 in a Julian date format (CYYDDD).
1 = 21st Century
MASK DESCRIPTION
R 2 digit year
E 4 digit year
B0000127: ReturnTodaysDate
Purpose:
This function will return today's date in a Julian date (JDE format).
Parameters:
B0700068: RetrieveDayofWeek
Purpose:
This function will take a date, and return the numeric day of the week (0-6) and its'
corresponding description (Sunday-Saturday).
0 Sunday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
Parameters:
B4201480: GetDayofWeek
Purpose:
This function will take a date, and return the numeric day of the week (0=Sunday,
6=Saturday) and error code (0=success).
Parameters:
Data Structure: D4201480A
B0800013: ConvertStringToDate
Purpose:
This function will convert a string that is in a date format (MM/DD/YYYY) to a Julian
date (JDE format). One digit day and/or one digit month input won't work on this
business function.
Parameters:
B0800208: ConvertStringDateToDateFormat
Purpose:
This function will convert a string that is in a date format to a Julian date (JDE format).
The Date Mask passed as a literal to the function describes the format of the string date.
For example, if the string date is in a format of 05/29/2002 the format mask to be passed
to the function would be OSASE. If the date was in a format of 052902 the format mask
would be OAR. See the information on the Date Masks Available for the available date
masks.
Parameters:
B3000250: GetMonthDescription
Purpose:
This function will validate a two digit number entered within a range (1-12) and convert
the 2-digit number to a string description of the month. (1=January, 2=February,
3=March, etc.). The function will return "Invalid Entry" if the input number is not in the
range.
Parameters:
mnCalendarMonth MT Numeric I
DESC
szDescription String O
- Use the substr Expression Manager function to get the month in String format (i.e.
12)
- Call B4000770 to convert string to numeric to get a numeric calendar month (i.e. 12)
B3000260: GetYearDescription
Purpose:
This function will validate a number entered within a range (00-99) and convert a 2-digit
number to a 4-digit description of the year. The function will combine the century and
year and give the description (i.e. 19 + 98 = 1998).
If the year is less than or equal to the default value of DCYR data item, then century will
be '20'
If the year is greater than the default value or DCYR data item, then century will be '19'
Parameters:
mnCalendarYear YR Numeric I
DESC
szYearDescription String O
- Use substr Expression Manager function to get the year in String format (i.e. 05)
- Call B4000770 to convert string to numeric to get a numeric calendar year (i.e. 05)
Purpose:
This business function will convert 3 numeric values (YY, MM, DD) to a Julian date
(JDE format). One digit number on the input month and day is acceptable.
Parameters:
mnYear YR MATH_NUMERIC I
Special Instructions:
If YY is greater than the default value of CENTCHG (DD item), the century is 19
If YY is less than the default value of CENTCHG (DD item), the century is 20
B7600920: ConvertNumbersAndDatesToString
Purpose:
This business function will convert a Julian date (JDE format) into a string DDMMYY
format (0 pad for one digit day and month).
Parameters:
B9100001: ConvertjulianDatetojdeDate
Purpose:
This business function will convert a Julian numeric date (JDE Julian Format of
CYYDDD) to a Julian date (JDE format). The first digit of a Julian numeric date input
represents century -- 0 for 19's, 1 for 20's, 2 for 21's, ....
Parameters:
Purpose:
ConvertDateToJulian: This function will convert a Julian date (JDE format) to a Julian
numeric date (YYYYDDD) Note: This Julian numeric date output is not in the JDE
Julian Date format of CYYDDD, but rather in a YYYYDDD format.
ConvertJulianToDate: This function will convert Julian numeric date (YYYYDDD) to a
Julian date (JDE format) Note: The input Julian numeric date should not be in the JDE
Julian Date format of CYYDDD, but rather in a YYYYDDD format.
Parameters:
ConvertDateToJulian:
ConvertJulianToDate:
*CDL is a 2 digit numeric data item. You might need to use other math numeric data
items to pass in/out to the business function. To get the numeric field to print out on the
report, display decimal and edit code need to be changed on the field.
B4500490: DateConversiontoJulian
Purpose:
This business function will convert a Julian date that is in JDE Date Format to a math
numeric Julian date (JDE Julian Format of CYYDDD). The first digit of a Julian
numeric date input represents century -- 0 for 19's, 1 for 20's, 2 for 21's, ....
Parameters:
B0000200: SixDigitNumerictoDate
Purpose:
This business function will convert a math numeric that is in JDE Julian format of
CYYDDD to a Julian date in JDE Date Format. The first digit of a Julian numeric date
input represents century -- 0 for 19's, 1 for 20's, 2 for 21's, ....
Parameters:
Special Note:
This Business Function is first available with Update 4 of J.D. Edwards software release
Xe.
B0000200: DatetoSixDigitNumeric
Purpose:
This business function will convert a Julian date that is in JDE Date Format to a math
numeric Julian date (JDE Julian Format of CYYDDD). The first digit of a Julian
numeric date input represents century -- 0 for 19's, 1 for 20's, 2 for 21's, ....
Parameters:
Special Note:
This Business Function is first available with Update 4 of J.D. Edwards software release
Xe.
B9800460: ConvertDateToString
Purpose:
ConvertDateToString: This business function will convert a Julian date (JDE format) into
a string according to the selected MASK. Date Mask is defined in UDC 00/DF
Parameters:
*User can define the field by selecting Literal and doing a visual assist and you will get
the choice below.
Date Mask available (UDC 00/DF)
*Special Note:
The business function ConvertStringToDate B9800460 was built for a very limited use
and has a very restrictive format. It forces slashes between the day month and year, it
requires a leading 0 for months and days that are a single digit, and it allows a date that is
only 8 characters long. This prevents printing 4 digit years. A 4-digit year will be
truncated into a 2-digit year.
N1700090: CalculateBeginDateofPeriod
Purpose:
This business function will return a period begin date, period end date, beginning date of
the fiscal year, and/or the ending dates for all 14 periods of the fiscal year.
Parameters:
Special Note:
This Business Function is first available with Update 4 of J.D. Edwards software release
Xe.
Document
Document Title
ID
Related Knowledge OTT-99-
Expression Manager Functions
Documents 0016