Copied to clipboard

Flag this post as spam?

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


  • Daniel Williams 16 posts 38 karma points
    Mar 08, 2011 @ 12:29
    Daniel Williams
    0

    Time (HH:MM) Datatype

    Hi there!

    I am looking for a datatype which lets you put Hours and Minutes, for the use of ex. Opening Hours in a shop.

    What is the best solution?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 08, 2011 @ 12:33
    Jan Skovgaard
    0

    Hi Daniel

    You should be able to achieve this by using the "date picker with time" datatype, which already exists in Umbraco.

    You can then just fetch the time part ignoring the date stuff when you create your macro, that should display the time.

    Hope this helps.

    /Jan

  • Daniel Williams 16 posts 38 karma points
    Mar 08, 2011 @ 12:36
    Daniel Williams
    0

    People recommended me that, but it doesnt make sence for the people who edits the page, that they can choose a date there also.

    So i would like to do it the right way! Any ideas on that?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 08, 2011 @ 12:43
    Jan Skovgaard
    0

    Hi Daniel

    Well I'm not sure that such a datatype that only provides the option of picking time does exist in one of the many packages out there, but for someone with the right skills this should be a breeze to create a custom datatype for it.

    Do you have C# and .NET skilles?

    /Jan

  • Daniel Williams 16 posts 38 karma points
    Mar 08, 2011 @ 12:47
    Daniel Williams
    0

    I will develop af custom time datatype when i get the time to do it, meanwhile i use the uComponent datatype Character Limit of 4 characters, and use substrings to add a : in the middle.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 08, 2011 @ 12:52
    Jan Skovgaard
    0

    If you have the skills it should be a breeze. I think this is a good read on how to do it: http://www.nibble.be/?p=24

    Hope this helps once you find the time to do it.

    /Jan

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Mar 08, 2011 @ 13:02
    Lee Kelleher
    0

    Hi Daniel,

    Got me thinking that this might be a nice addition to uComponents... we are (kinda) bias towards jQuery plugins, so was looking at this plugin:

    http://labs.perifer.se/timedatepicker/

    Might add this to the to-do list for next version of uComponents ... or if you develop your own data-type, let us know, we could include it?

    Cheers, Lee.

  • Daniel Williams 16 posts 38 karma points
    Mar 08, 2011 @ 13:06
    Daniel Williams
    2

    Give me a couple of days, and ill see what i can get developed, i have an idea!

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Mar 08, 2011 @ 13:29
    Hendy Racher
    0

    A DateRange / TimeSpan picker would be very useful - (it's been on the uComponents to-do list for a while...)

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Mar 08, 2011 @ 13:36
    Lee Kelleher
    0

    Saw this one a while ago...

    http://www.filamentgroup.com/examples/daterangepicker_v2/

    ... maybe a tad overkill, but looks awesome!

    Cheers, Lee.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 08, 2011 @ 13:44
    Jan Skovgaard
    1

    That looks really awsome indeed! But perhaps it's a bit overhelming with all the options?

    Perhaps it would be a good idea to make it configurable so one can choose to either add or remove options (checkbox like I'm thinking) - So by default you perhaps have 2 or 3 options and then the rest is optional to make sure the picker is the best fit for the context.

    Hope it makes sense.

    Just my 2 cents

    /Jan

  • Douglas Ludlow 210 posts 366 karma points
    Mar 27, 2012 @ 16:52
    Douglas Ludlow
    0

    So is there a time picker available now? I'm a little lazy and would rather use one that's already availbe as opposed to making my own.

Please Sign in or register to post replies

Write your reply to:

Draft