iceangel89 wrote:
> 
> hows the best way to create a datepicker. i know theres dojo but if js is
> disabled that will fail. i  think i can use the date validator for dates
> but how can i set the format i want? like yyyy-mm-dd which mysql uses?
> 
> the default seems to be yyyy-mm-dd but is that determined by the user? how
> can i explicitly set that?
> 

You should take a look at the what the grand master of Zend_Form has to say!
Read a couple of Matthew's latest blog posts here:

http://weierophinney.net/matthew/archives/217-Creating-composite-elements.html
http://weierophinney.net/matthew/archives/215-Rendering-Zend_Form-decorators-individually.html

Basically what you need to do is create your own element which handles the
data and converts it in to the format you want and visa versa. It's fairly
simple, read the first blog post it's almost exactly what you want.

-----
Simon

http://www.ajb007.co.uk/
-- 
View this message in context: 
http://www.nabble.com/Date-Picker-tp23352368p23353508.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to