wsv01 Posted September 11, 2018 Share Posted September 11, 2018 I know this was an issue in 2015 from looking at an older post, but could it have come back again? No matter what I change the DateFormat property to in the TUniDateTimePicker it always shows a format of dd/MM/yyyy. I need it to show mm/dd/yyyy but it will not do anything in the design or run mode. Quote Link to comment Share on other sites More sharing options...
wsv01 Posted September 12, 2018 Author Share Posted September 12, 2018 OK, I found a work around. On the create event of the form where the date control is located I added this line of code. uniDateTimePicker1.DateFormat := 'MM/dd/yyyy'; Why can't I set the DateFormat property during design time? Why can't I use lower case like this either? If I use this code uniDateTimePicker1.DateFormat := 'mm/dd/yyyy'; the runtime display is 44/11/2018. Am I doing something wrong? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 12, 2018 Share Posted September 12, 2018 http://forums.unigui.com/index.php?/topic/7767-tunidatetimepicker-issue/&do=findComment&comment=39666 Quote Link to comment Share on other sites More sharing options...
wsv01 Posted September 12, 2018 Author Share Posted September 12, 2018 Wow! I really feel dumb on this one! I guess I just need to know why the design time DateFormat is not working for me. 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.