NNKL.COM
welcome to my space
X
Search:  
 HOME   Can't set DateField from mysql timestamp
Can't set DateField from mysql timestamp
Published by: admin 2009-01-08
Welcome to:nnkl.com

  • 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.html
    HOME

    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.html
    HOME


  • 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/731
    HOME
    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.py
    HOME

    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

    You are looking at:nnkl.com's Can't set DateField from mysql timestamp, click nnkl.com to home
  • used car loan rates save to the max
  • camping in inner mongolia
  • the dragons backbone longji titian rice terraces
  • cash advance uk can give you the best financial help
  • advantages of snow blower
  • drum washing machine “the stain away quot
  • commercial photographer and the right lens to work with
  • great ways to guarantee your agricultural loan
  • mercedes benz to double sales of diesel cars suvs in the us
  • advertising photography – lenses for food photography
  • finding contacts on myspace
  • inactivity speeds up aging
  • new laptops coming your way
  • exercise your brain to boost your brain power
  •  
  • finding the right agriculture loan for you
  • 3 ways to eliminate holiday stress
  • online shopping stores easy and convenient
  • flyer direct mailing and why people are still for it
  • water sanitation options in a hurricane
  • pregnancy nutrition guidelines for a healthy pregnancy
  • steps to follow when filing back taxes
  • could there be a relationship between the imbalance in the iron status and clinical depression
  • sun damage the main culprit to skin problems
  • islam 101 was islam spread by the sword
  • xinjiangs massive muslim markets
  • what is the best core abdominal fitness workout for promoting super y six pack abs
  • search engine optimization for better search engine visibility
  • dating sites getting in on the secret weapon of chat rooms
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 nnkl.com        Site made:CFZ