demetris Posted November 10, 2017 Share Posted November 10, 2017 I need to run on the same machine 2 versions of the same application for different clients. the one uses mm/dd/yyyy and the other dd/mm/yyyy I do have a unidbgrid and in it a date field edited by a unidbdatetimepicker. The unidbdatetimepicker validates against the regional settings giving an error for the one with different format. How can I get around this? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 10, 2017 Share Posted November 10, 2017 Hi, Which edition and build are you using? Quote Link to comment Share on other sites More sharing options...
demetris Posted November 10, 2017 Author Share Posted November 10, 2017 Personal 1416 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 10, 2017 Share Posted November 10, 2017 First of all please visit here: http://forums.unigui.com/index.php?/topic/6291-new-users-please-adjust-your-forum-email-address/ Quote Link to comment Share on other sites More sharing options...
demetris Posted November 10, 2017 Author Share Posted November 10, 2017 Done! Quote Link to comment Share on other sites More sharing options...
demetris Posted November 14, 2017 Author Share Posted November 14, 2017 Any resolutions? Quote Link to comment Share on other sites More sharing options...
demetris Posted November 20, 2017 Author Share Posted November 20, 2017 how can I clone the 'OnCloseup" behavior in unidbdatetimepicker? Quote Link to comment Share on other sites More sharing options...
RobYost Posted November 22, 2017 Share Posted November 22, 2017 This is how I did it: https://unigui.miraheze.org/wiki/Format_Date_in_Local_Format Basically, I create a new copy of TFormatSettings and use their local setting in it. Then I setup up some types of date formats: MM/DD/YYYY MM/DD/YY etc. Then I call fmtDate ( source is in the link) and it changes MM/DD/YYYY to DD/MM/YYYY or MM/DD/YY to MM/DD/YY depending on what is in TFormatSettings Let me know if you have any questions about the source in: https://unigui.miraheze.org/wiki/Format_Date_in_Local_Format Quote Link to comment Share on other sites More sharing options...
demetris Posted November 25, 2017 Author Share Posted November 25, 2017 Looks Good Thanks!!!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.