Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In one of my windows application I've used Microsoft datepicker control. but just noticed that I've some issues in formatting and highlighting. I've set the date format to custom and set the custom format to dd/MM/yyyy. it is showing selected date in correct format. but Today's date at the bottom of calendar control is showing in MM/dd/yyyy format. and when is place my mouse pointer on that bottom todaty date, it's not highlighting the last two digits of year.

To get a more clear view of the issue, please refer to the attached image...

Click Here
Posted

1 solution

The small date is based on the system date format: it cannot be formatted by code. Try this:

  • Open the control panel, find the regional settings ("Region and Language" in Win 7.)
  • Change the short date format to something unusual, such as the ANSI format (yyyy-MM-dd). Save changes.
  • Run your app, and look at the date format on the drop down calendar.

In short, you can't get there from here, unless you want to build your own calendar control from scratch.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900