Returns the normal date (as opposed to the closing date) for the
argument Date.
|
NormalDate := NORMALDATE(Date)
|
Parameters
- Date
-
Type: Date
The input date. You can enter a closing date or a normal date. A
run-time error occurs if the value of Date is set to the undefined
date (0D).
Property Value/Return Value
Type: Date
The resulting normal date. If the input date is either a normal
date or a closing date, then the return value is a normal date.
Remarks
Example 1
The input date is a normal date. This code example requires that
you create the following variables and text constants in the C/AL
Globals window.
Variable name |
DataType |
InputDate
|
Date
|
OutputDate
|
Date
|
Text constant name |
ENU value |
Text000
|
The normal date for %1 is %2.
|
|
Copy Code |
InputDate := 040409D;
OutputDate := NORMALDATE(InputDate);
MESSAGE(Text000, InputDate, OutputDate);
|
On a computer with the regional format set to English (United
States), the message window displays the following:
The normal date for 04/04/09 is 04/04/09.
Example 2
The input date is a closing date. This code example requires
that you create the following variables and text constants in the
C/AL Globals window.
Variable name |
DataType |
InputDate
|
Date
|
OutputDate
|
Date
|
Text constant name |
ENU value |
Text001
|
The normal date for %1 is %2.
|
|
Copy Code |
InputDate := CLOSINGDATE(040409D);
OutputDate := NORMALDATE(InputDate);
MESSAGE(Text001, InputDate, OutputDate);
|
On a computer with the regional format set to English (United
States), the message window displays the following:
The normal date for C04/04/09 is 04/04/09.
See Also