views:

7408

answers:

2

I am using the Ajax Control Toolkit Calendar Extender control. In some fields though I want to display the time along with the date. I have tried just setting the Format to "dd/MM/yyyy hh:mm:ss" but the time section gets wiped off. If the user wants to change the time section they can do it manually, the calendar drop down is only used for changing the date part.

Are there any workarounds or alternatives to get this working?

+2  A: 

I have a similar issue and I'm planning to use a Date field and an associated time dropdown (in 1/2 hour increments). User sets the date in the date field, optionally using the calendar control, and pulls down to a valid time. I plan to have one selection in the time drop down be a "don't care" in case it an "all day" event.

[EDIT] I found this jquery plugin that I may end up using. I also found a link to Gaia DateTimePicker in the answers to this post (which now looks to be deleted, probably because the OP was asking for WPF controls, not web controls).

tvanfosson
I may end up going similar route with two controls if all else fails.
Craig
Thanks for the tip on the jquery plugin. I was having the same problems with the ASP.NET AJAX DateTime calendar control, and looking for alternatives.
Steve Wranovsky
The update linked is http://samples.gaiaware.net/Extensions/DateTimePicker/Overview/
John M
Thanks @John M -- I've updated the answer with the new link.
tvanfosson
+2  A: 

The Ra-Ajax Calendar is coming out with TIME support this upcoming Friday (28th of Nov. 2008) and it's LGPL licensed...

Thomas Hansen
Do you know where to find a sample with TIME support?
John M
I don't know we have an example if it, but you could use the Ra DateTimePicket which exists in the same projects as the Calendar.
Thomas Hansen