This is a migrated thread and some comments may be shown as answers.
TimePicker show date instead time
1 Answer 18 Views
This is a migrated thread and some comments may be shown as answers.
Mohamed El-Sayed
Top achievements
Rank 1
Mohamed El-Sayed asked on 22 Jul 2014, 02:30 PM
Dears ,

kindly I need your help as I've two timepickers and both of them after the time pop up screen appear and choose the time it turned it to date " 31/1/1990"

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 23 Jul 2014, 07:13 AM
Hi Mohamed El-Sayed,

Thank you for contacting us. 

I was able to reproduce your issue only if I set the Mask property of RadTimePicker to date like "dd/M/yyyy". If you want to display time, you need to set mask of time like "HH:mm:ss". Please take a look at the following code snippet: 
this.radTimePicker2.TimePickerElement.MaskedEditBox.Mask = "HH:mm:ss";
this.radTimePicker2.TimePickerElement.MaskedEditBox.MaskType = Telerik.WinControls.UI.MaskType.DateTime;

You can refer to Date Formats article which shows a list of patterns that can be combined to create custom patterns for date and time. 

If this is not what you want to achieve, I would kindly ask you to send me a more detailed explanation. 

Hope this will help you. Let me know if you have any other questions.

Regards,
Ralitsa
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Asked by
Mohamed El-Sayed
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Share this question
or