Jump to content

uniDateTimePicker DateFormat not working


wsv01

Recommended Posts

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.

Link to comment
Share on other sites

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?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...