Hello, my applications usually run on computers with a M/d/yyyy (English (United Sates)) system short date format. I have been running into issues on systems that have the system short date defined as dd/MM/yyyy (English (Canada)). I am repairing instances where there is a string to date conversion like "date(ls_mydate)". This will require testing and may introduce bugs.
The largest problem I've run into are the datawindow functions SaveAs and ImportFile. These appear to use the system date format when writing and reading. We export some files that are imported by other systems that expect a date format of "M/d/yyyy". I'd like a stable way to read and write files that have dates in them that is not tied to the system's short date format.
I have a few questions:
1) Is there a way to override the system's short date format for a Powerbuilder app?
2) Is there a way to set the date format that SaveAs and ImportFile use to write dates to a file?
3) What do you do to deal with issues like this? Make it a requirement that the regional settings are set to a specified type?
The apps are currently PB 12 but we are on the way to Appeon PB, hopefully by the end of the year.