Hi -
I've got a DateField in a form. The date comes across from mysql in ISO8601Long ('Y-m-d H:i:s'). The datefield will not accept my datetime string as a valid date. Is there a way to rectify that?
Also - is there a way to render the date in the datefield different from the default format? Can't seem to figure that out either. NEOHAPSIS - Peace of Mind Through Integrity and Insight:: Realize that, according to the mysql docs, timestamp(10) expects When i enter in the value for the date field in the form, I enter it as such: Jan 11, http://archives.neohapsis.com/archives/php/2001-12/0047.htmlHOME |
Thanks Much! Problem with blank date fields. - Dev Shed:: Why can't I populate a table in Postgresql with a blank date field. . No need to use varchar, just date the timestamp column as NULL. http://forums.devshed.com/postgresql-help-21/problem-with-blank-date-fields-164148.htmlHOME |
I've been reading the docs backward and forward. I LIVE in the docs....
I set the format in the fields config. Still it is rendering different.
I set changed the altFormats to include 'Y-m-d H:i:s', but the datefield still will not accept a timestamp in the format of '1971-03-30 00:00:00'. Time to move away from timestamp? | groups.drupal.org:: This takes another field (taxonomy or something) as you really can't tell what's going on in straight datetime DB fields (althought in mysql you can set the http://groups.drupal.org/node/731HOME | Perforce Defect Tracking Integration Project # <http://www :: TIMESTAMP]: if MySQLdb.type_conv.has_key(t): del MySQLdb.type_conv[t] # types of values going into MySQL for t in [DateTimeType, DateTimeDeltaType]: if http://www.ravenbrook.com/project/p4dti/version/1.3/code/replicator/configure_bugzilla.pyHOME |
The problem doesn't by the way occur when I manually type in the date (which is what I though altFormats is for) but rather when I call setValue.
ideas?
Note that the date field only supports dates (not time). What happens if you set your format to only include the date part?
Ok - figured it out. Apparently I needed a coffee break. :-) Dang typos!
All is working well now...
Can you post your code, please? I've the same problem: sending the date, give the format, but no date in my datefield (other fields do work). Thanks!
Please check the docs:
http://extjs.com/deploy/dev/docs/?class=Ext.form.DateField&member=altFormats
http://extjs.com/deploy/dev/docs/?class=Ext.form.DateField&member=format
Ok - figured it out. Apparently I needed a coffee break. :-) Dang typos!
All is working well now...
I Am a Sinner – What About You?
Global Sourcing and Supplier Online by Dylan
|