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.
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.
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.
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?
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
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?
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
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.
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
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.
Give me a couple of days, and ill see what i can get developed, i have an idea!
A DateRange / TimeSpan picker would be very useful - (it's been on the uComponents to-do list for a while...)
Saw this one a while ago...
http://www.filamentgroup.com/examples/daterangepicker_v2/
... maybe a tad overkill, but looks awesome!
Cheers, Lee.
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
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.
is working on a reply...