Add documentation of the '?' ScanDateTime parameter
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
ScanDateTime is a very powerful function to convert strings to date/time values. However, it is hard to apply in some cases. A discussion in the forum (https://forum.lazarus.freepascal.org/index.php/topic,53207.msg393306.html) showed me today that there is a format string parameter that I never have seen before.
Please add the following text to the documentation of the ScanDateTime function (after "Description")
---------------
In addition to the format characters used by the [[FormatDateTime]] function it is also allowed to add at '?' symbol to indicate an arbitrary character.
Examples:
dt := ScanDateTime('dd-mm-yyyy', '02-01-2021');
dt := ScanDateTime('hh:nn:ss.zzz', '12:05:32.891');
dt := ScanDateTime('mmmm dd??, yyyy, hh:nn ampm', 'April 2nd, 2014, 06:57 pm');
Mantis conversion info:
- Mantis ID: 38448
- Fixed in version: 3.3.1
- Fixed in revision: 1804 (#d4a7f7d6)
- Target version: 3.2.2