Quantcast

Issue setting DateTextBox value

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue setting DateTextBox value

Harry Devine

I have a DateTextBox that I can set the value initially without issue.  I then save the selected value into a MySQL database, however, when I try to retrieve it and use it, it is all zero's.  The field in the database is defined as DATETIME.


When I set the value into MySQL, it goes in as follows: 2000-04-25 04:00:00.  However, when I retrieve it later and try to set the value of another DateTextBox to show the date, there's no value displayed.  I've tried stamp.fromISOString and gotten the same result.  stamp.toISOString gives me an error in Firebug.  So how do I get the date into the proper format to fill the DateTextBox?


Thanks,

Harry


--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Loading...