Forums / Developer / Date picker (pop-up)? / Comment45024
Fraser Hore
Thursday 22 December 2005 3:38:02 am
I tried using the ifFormat line but for some reason i couldn't get the date object to have anything other than yyyy/mm/dd. No time. I figured out that i could use getHours() etc.
The showsTime: true parameter shows the time on the calendar so you can select it. You just have to change the time first and then select the date because of the close on selectDate part.
Next step to refine this is probably to have the calendar default to the date/date and time in the ezdate/ezdatetime attribute, if there it isn't empty. Right now both date and time default to the current date and time whether there is content in the attribute or not.
The time selection usability isn't great but it does fill in some content that can be edited, which is often faster, and it opens the possibility to improve the usability of the time selection in the calendar later, if anyone feels so inspired :-)
Do you see any problems with using the code as it is? I think I mentioned before that i'm no coder, i'm just good at googling and very stubborn :-)