Show secods

2 posts, 1 answers
  1. Gilbert van Veen
    Gilbert van Veen avatar
    74 posts
    Member since:
    Oct 2009

    Posted 17 Feb 2010 Link to this post

    Hello Telerik friends,

    I am using the TimePicker to let the user select a time. The time which is selected is used for a duration and therefore it would be nice if it is also possible to show seconds.

    Now I am getting only the HH:MM details but I would like also to have the seconds. Is this possible.

    Show I should be able to select a time like:  10:05:05 which means 10 hours, 5 minutes and seconds.
  2. Answer
    Konstantina avatar
    2332 posts

    Posted 18 Feb 2010 Link to this post

    Hello Gilbert,

    Thank you for contacting us.

    You can format the time and show the seconds in the TimePicker through the culture of the control, for example:

    public MainPage()
        timePicker.Culture = new System.Globalization.CultureInfo("en-US")
            DateTimeFormat = new System.Globalization.DateTimeFormatInfo()
                ShortTimePattern = "h:mm:sstt"

    Hope this helps.

    If you have further questions please feel free to contact us again.

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top