Copied to clipboard

Flag this post as spam?

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


  • Nico 16 posts 37 karma points
    Feb 06, 2011 @ 02:45
    Nico
    1

    Time picker ?

    Hi,

       I require a time only picker.

       Is it possible to reuse Date / Time picker but, using only the time part, as the date picker uses only the date part?

       Thanks in advance for your answers.

    NF

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 06, 2011 @ 10:38
    Jan Skovgaard
    0

    Hi Nico

    You should be able to extract only the time from using the "date w. time" picker.

    Using the the FormateDateTime extension in XSLT, which you can read more about here: http://our.umbraco.org/wiki/reference/umbracolibrary/formatdatetime

    So to just get the time you could write something like this:

      <xsl:value-of select="umbraco.library:FormatDateTime($currentPage/yourdatetimepicker, 'H:mm')"/>

    (please note I'm using the syntax of the new XML schema in the above sample).

    I hope this helps.

    /Jan

  • Nico 16 posts 37 karma points
    Feb 07, 2011 @ 13:49
    Nico
    0

    Hi,

       thanks for your answer on usage of the data coming form the control.

       About the UI of the control, could it be possible to hide the date calendar ?

    NF

  • Øyvind Kristiansen 14 posts 54 karma points
    Feb 18, 2011 @ 16:20
    Øyvind Kristiansen
    0

    Did you find an answer to your last question, Nico? I am also trying to find an easy way to use the date/time picker with time only. A hacky way might be to just find the  calendar in the DOM somehow and just hide it using CSS. I guess the selected time would be saved together with todays date, which should work, since the date part can be ignored.

  • Nico 16 posts 37 karma points
    Feb 19, 2011 @ 00:20
    Nico
    0

    Hi,

       no, I didn't got any amswer. You idea is good, should be tried...

  • Craig Palenshus 39 posts 63 karma points
    May 26, 2011 @ 18:58
    Craig Palenshus
    1

    Hi Nico, did you ever figure anything out on this or did you just learn to live with it with the calendar showing, too?

Please Sign in or register to post replies

Write your reply to:

Draft