Jump to content
uniGUI Discussion Forums
Sign in to follow this  

unidbdatetimepicker within unidgrid using mm/dd/yy & dd/mm/yyyy

Recommended Posts

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?

Share this post

Link to post
Share on other sites

This is how I did it:




Basically, I  create a new copy of TFormatSettings and use their local setting in it.


Then I setup up some types of date formats:





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:


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this