I am using Infragistics.Win.UltraWinEditors.UltraDateTimeEditor to create a control for Windows, and I select 'Format' as 'yyyy/MM/dd HH:mm:ss', however, when I change the date, it only populate the current date and cannot populate current time. How can I populate current time whever I change date?? Thanks.
Thanks Mike,
I'll give it try and let you know.
Regards,
Mohsin
Hi Mohsin,
I don't think the DateTimeEditor has any support for 24-hour time. Maybe you could use the UltraCalendarCombo control, instead. This control doesn't have an input mask, it allows freefom text entry. But if you set the Format to "hh:mm tt", it will do what you want - convert "23:00" to "11:00 PM".
Hi,
This my first question in this forum, so I apologize if I am in the wrong place.
My question is as follows:
I am using UltraDateTimeEditor. The mask input is {time}.
Problem is that it does not allow me to enter a value like 23:00 .
In the datetimepicker of .net if I enter 23:00 it automatically changes it to 11:00 PM. I want to do the same in UltraDateTimeEditor.
Can you please suggest any solution.?
The UltraDateTimeEditor uses the .NET MonthCalendar as its dropdown, so that value that is returned to the editor is the date without the time portion attached to it. If you want to add a time to the value, you could handle the AfterCloseUp of the UltraDateTime editor and update the Value to include the time portion.
-Matt