How to set calendar to Today automatically on dropdown

Editors for WPF Forum

Posted 4 years ago by Moondance
Version: 15.1.0623
Avatar

I am using the datetimeditbox and its value is iitialized to Datetime minimum (new DateTime). This means that on the edit box one see  0001-011T0:00:0; (using "s" format). This is exactly what I want. However when I click on the dropdown the selected time is sometime in January 1753. I would like the selected value to be today's value (without changing the value on the edit box of course). In other words I would like to automatically "click" on the CalendarTodayButton when user clicks on the dropdown.

I have not found a way to achieve that. Any code sample?

 

Thanks.

Comments (1)

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Hmm... I'm not seeing that happen.  When I click on the dropdown's time spinner or add a time via typing on the dropdown, it's filling in with today's date as the rest of the value.  Can you tell us exactly how to repro it in our DateTimeEditBox QuickStart?  Thanks!


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 15 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.