Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • siva kumar 120 posts 209 karma points
    Mar 20, 2013 @ 07:19
    siva kumar
    0

    how to show only time in datepikcer with time control?

    how to show only time in datepikcer with time control

  • Daniel Williams 16 posts 38 karma points
    Mar 20, 2013 @ 08:41
    Daniel Williams
    0

    You can always use the..

    XSLT:
    <xsl:value-of
    select="umbraco.library:FormatDateTime($currentPage/@updateDate, 'MMMM d, yyyy')"/>

  • gary 385 posts 915 karma points
    Mar 20, 2013 @ 09:11
    gary
    0

    Hi Siva

    Date-Picker controls follow asp.net rules regarding dateTime functions, so you can write .ToString()

    This blog post indentifies some options http://www.4guysfromrolla.com/articles/111010-1.aspx

    In V6.0.2 razor you could use @CurrentPage.Date.ToString("d") and it will give date as 11/8/2010 if this is the date picked from the date-picker with the property alias of date.

    Hope it is useful

    G

  • siva kumar 120 posts 209 karma points
    Mar 20, 2013 @ 12:24
    siva kumar
    0

    no i want only timepicker user interface (not the value).how to do it ?

  • gary 385 posts 915 karma points
    Mar 20, 2013 @ 16:08
    gary
    0

    Hi Siva

    Dont think there is an easy way to "hide" the date part in the Umbraco UI.

    How about using 2 uComponents sliders with 0 to 24 and 0 to 59 as ranges? In theory it is the same.

    http://ucomponents.codeplex.com/wikipage?title=Slider

    Certainly is an option if you are using v4. Would need to check compatability with v6.

    Regards

    G

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies