Jonathan
Jonathan

Reputation: 651

MM in datetime picker not working propertly

I want to set a custom format for DateTimePicker. My desired result is Wednesday/May 05/2019 and I'm using dddd/MMM MM/yyyy as the CustomFormat.

enter image description here

In Visual Studio design form I see:

enter image description here

But when I run it and change the date from May 5th to May 31st:

enter image description here

The dddd (day of week) gets updated correctly, but the date stays the same.

Upvotes: 0

Views: 33

Answers (1)

Rhaokiel
Rhaokiel

Reputation: 843

I believe you may be confusing two different values.

MM means the numeric value of the month. As long as your date is within May it will always be 05.

If your intent is that value be the day of the month, then try dd

dddd/MMM dd/yyyy

Upvotes: 2

Related Questions