Re: Re: Formbuilder: Date

From: Date: Mon, 21 Jun 2004 20:01:25 +0000
Subject: Re: Re: Formbuilder: Date
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13236@lists.php.net to get a copy of this message
Tobias Nix wrote:
Do i have to set a specific format in the db for the date field?
has to be date or datetime.
If the dateFields property is used (as described), other field types can be used as well. You'll just have to define the proper callback functions for date format conversion in your .ini file: [DB_DataObject_FormBuilder] dateToDatabaseCallback = dateToDB dateFromDatabaseCallback = dateFromDB The above setting will call the (global) function dateToDB() whenever a date is to be converted from the user input format to the storage format in the database. dateFromDB() will be called for the opposite task. CU Markus

« previous php.pear.general (#13236) next »