JCL Help:FormatDateTime
JCL Help: FormatDateTime Function
Search in JCL Help
Search in all projects
Summary
Enhances FormatDateTime by the additional Format tokens w, i, e and f.
Pascal
function FormatDateTime(Form: string; DateTime: TDateTime): string;
Parameters
Parameters | Description |
Form: string | Form: String: Format String. |
DateTime: TDateTime | DateTime: TDateTime: Date to be formatted |
Return Value
String holding the formatted date.
Description
Enhences FormatDateTime by additional Format tokens:
Token | Meaning |
w or W | Week no according to ISO |
ww or WW | Week no according to ISO forced two digits |
ii or II | Year of the ISO-week denoted by w forced two digits |
iiii or IIII | Year of the ISO-week denoted by w (4 digits for 0001..9999) |
e or E | Number of the Day in the ISO-week denoted by w (ISO-Notation 1=Monday...) |
f or F | Number of the Day in the year denoted by y |
fff or FFF | Number of the Day in the year denoted by y forced three digits |
About
Unit
Donator
Michael Schnell
Notes
To activate this function JCLDateTime must appear after SysUtils in the uses clause or it must be explicitly denoted as JCLDateTime.FormatDateTime. The help for SysUtils.FormatDateTime does not state that unrecognized characters in the format string are passed unchanged. If this feature was erroneously used, JCLDateTime.FormatDateTime is not 100% compatible, as it defines additional tokens.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page