Hello!
How can I format a text control to show only the date in YYYY/MM/DD format using slashes? Furthermore, I would like to display a calendar icon beside it which opens an expandable calendar and sends the selected date to the text control field. This way, the user can enter the date both using the text control or the pop up calendar. Can anyone give me a hint on how to do this?
Cheers!

Dani

Recommended Answers

All 2 Replies

Hint

Cheers and Happy coding

Thank you! It was what I was looking for. I used the code

DateTxt = wx.DatePickerCtrl(panel, -1, size=(110, -1), style=wx.DP_DROPDOWN | wx.DP_SHOWCENTURY)

Cheers!

Dani

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.