Date picker format
Posted: Thu Nov 19, 2015 11:26 am
How do you recommend that we handle different date formats for different groups of users?
We are working on implementing a solution to allow users in different countries to use different date formats (e.g. d/m/y or m/d/y).
Our rich display files contain date fields (referencing a 6,0 numeric field) and using field formatting of Number with an Edit Word of ' / / '. Our RPG programs set the values (and work with the values) of date fields based on the job's DATFMT. When a user job is started the startup job sets the DATFMT based on their application profile which indicates the country in which they work (and the associated date format).
This works fine except that the date picker always returns the date in a mm/dd/yy format. We have tried changing the PC's region and language setting, but this did not effect the format returned by the date picker.
How can we set the format returned by the date picker?
We are working on implementing a solution to allow users in different countries to use different date formats (e.g. d/m/y or m/d/y).
Our rich display files contain date fields (referencing a 6,0 numeric field) and using field formatting of Number with an Edit Word of ' / / '. Our RPG programs set the values (and work with the values) of date fields based on the job's DATFMT. When a user job is started the startup job sets the DATFMT based on their application profile which indicates the country in which they work (and the associated date format).
This works fine except that the date picker always returns the date in a mm/dd/yy format. We have tried changing the PC's region and language setting, but this did not effect the format returned by the date picker.
How can we set the format returned by the date picker?