TimePicker show date instead time

2 posts, 0 answers
  1. Mohamed El-Sayed
    Mohamed El-Sayed avatar
    33 posts
    Member since:
    Apr 2009

    Posted 22 Jul 2014 Link to this post

    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"

  2. Ralitsa
    Ralitsa avatar
    192 posts

    Posted 23 Jul 2014 Link to this post

    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.

    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.
Back to Top