I am assuming that the value you are working on is a text value.
You cannot change the underlying Windows setting for date values unless you change the systems International settings, which is NEVER a good practice. Should your program "crash" or the user leaves the program to work on another program, the settings on the host PC will have changed and produce problems for the user.
Instead you need to convert internally within your program by a call to a function such as the one I have written for you called
If your value is NOT text but a date, you have problems which cannot be fixed unless you use API calls.
Hope the code makes sense. It is just a sample, but the main part is the call to the function sNewDate.
You can test it by creating a new project, placing a text box on it called txtBalGam





by: ladarlingPosted on 2009-08-14 at 06:35:12ID: 25097781
So, do you want all dates to be in the format 'dd.mm.yyyy', or are you wanting the datetimepicker to accept a date in either format: 'mm/dd/yyyy' and 'dd.mm.yyyy' ?