DateTimePicker behavior

When you click in a non month number (say after 28 / 29 / 30 / 31, the greyed values), the Month is incremented !

I clicked there by error and see something, but do not understand. I then clicked once more and looked carefully and understand what the problem is.

That is how the native mac control works
screencast2026-04-075PM-00-03-ezgif.com-video-to-gif-converter

Calendar changed from April to May

Just like it should be. When you select a day belonging to the next month the display switches to show that month. Works as intended.

1 Like


Even when you click in the disabled numbers ?
26-31 at the top and 1-6 at the bottom ?

OK, (I can understand, now that I am awake) but why there is also a change when clicking elsewhere ?

There:
image
but not in the the black buttons, of course.

My vision was blurred yesterday at night when I wrote this thread, and I was surprised.

As you see, my screen shot shows Nov 2014, the date I needed. Fortunately, I do not needed older dates like say 1954…

They aren’t disabled, as you have seen. They are displayed in grey because they do not belong to the selected month but the one before or the next month. They can still be clicked on, but to get actually selected the date picker needs to switch to the matching month. When November is shown, only days in November can be displayed as selected (i.e. with a grey background), so when you click on a day in late October or early December the date picker duly switches to that month so it can display the new selected date.

1 Like

And a click around the navigation buttons (read back my previous entry) ?

The clickable areas are a little larger than the tiny triangles and the dot, thankfully. Where’s the problem? Why would anyone click there if they don’t intend to hit one of those buttons?

1 Like

Because they offer another way to change months. It be difficult for some users to understand that the only way to change months is to click on days for the next/previous months.

If you need to, you should create a dual selection option (type the date and show the calendar) just as the Set Date Time on the macOS works. This was mentioned in a previous thread:

2026-04-08_07-57-04

1 Like

Yeah, I think it is a waste of time agonising over the peculiarities of the DateTimePicker controls. Their use is pretty straightforward and by combining the two variants (graphical and textual) one has all bases covered. This way selecting some arbitrary date in the far future or past is just as fast and easy as selecting one near the current date.

2 Likes

Like many other things, by error (no, I do not searched for a bug) / I missed the button….

That is an idea, but it is infortunate that we cannot use the nice graphics display mode.
I unchecked that property, and will let it as is for sometimes to see how I feel about that mode.

I think the suggestion was to use both the graphical and the textual display in parallel. It is easy to synchronise the two and it gives you the best of both worlds.

To synchronise the date between two DateTimePickers you would use

Sub DateChanged(value as DateTime) Handles DateChanged
DateTimePicker2.SelectedDate = value
End Sub