Multiple date and time pickers

NickOg 14 Aug, 2013
Hi Bob,

I can't find a solution to this. I have three date time picker fields on the one form. One I want to configure for date only and the others for time only in 12 hour format. The pickers work as specified in the control but the output from the format: '%d %b %y %I:%M %p ' is imposed on both the date and time fields.
Is there some way round that short of replacing the control with a custom version and reformatting there?

Thanks
Nick
GreyHead 15 Aug, 2013
Hi Nick,

The way that the datepickers work is a bit clunky as soon as you need something different. Basically even if you assign a separate class to one the old class is retained as well. I've got round this by using Text Box elements for the custom pickers, setting a distinctive class then using the Custom MooTool DatePicker element (or just a chunk of JavaScript) to assign the settings for that class. It seems to work well.

Bob
NickOg 15 Aug, 2013
Hi Bob,

Thanks for that. I will give it a whirl.

Nick
NickOg 16 Aug, 2013
Actually, it looks like Custom MoolTools Date Picker does the trick. I have used two of them - one with a class for the short date and the other for the two short times. Seems to work well.

Nick
This topic is locked and no more replies can be posted.