Re: DataObject, Date and Portability

From: Date: Fri, 25 Jul 2003 01:05:10 +0000
Subject: Re: DataObject, Date and Portability
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-6809@lists.php.net to get a copy of this message
Nikhil G. Daddikar wrote:
Hello, I have code working w/ MySQL and I like the overall interface. We've been able to get off the ground very quickly. However, I am unclear on how to use date columns in a db independent way.
I think most databases can be assumed to use ISO date formats. IF you dont have to deal with dates before 1979, date('d/m/Y',strtotime($dataobject->col)); is quite effective for formating dates in a user friendly format, otherwise try the date package. when we finally get time to integrate MDB, then there will probably be more date features available in DataObjects. Regards Alan
Also, are there other things of which I should be aware of? Thanks! Nikhil


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