Hello everyone,
I am working with Delphi 12 and using some functions to convert TDateTime to String and vice versa. However, while testing the FormatDateTime function, I noticed an issue. When I use the format dd/mm/yyyy, specifying the slash (/) as the date separator, but my system's short date format is set to aaaa-MM-dd (using a hyphen as the separator), the output is in dd-mm-yyyy format instead of the expected dd/mm/yyyy.
Is this a bug, or is there a specific reason for this behavior?
Here is a snapshot of my short date format and the result of the example above.