-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
DateTime data types are stored as Double numbers in Access tables.
E.g.:
Now = 4/13/2006 6:25:50 PM and is stored as 38820.7679398148
The integer is the number of days since 12/30/1899 (the ZEROth day).
The decimal is the number of milliseconds since midnight of the
indicated date.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBRD76t4echKqOuFEgEQL6VwCg/2C45yozmB2g8NKPFNH9Vh/0U8QAn2wC
Mdz56o0CTfNigL07XbJP/GsJ
=j8Hq
-----END PGP SIGNATURE-----
dubing@gmail.com wrote:[color=blue]
> Hello,
>
> We're using PHP to query the Access DB and publish the data on the web.
>
> Query the DB:
>
> $qry = odbtp_query("SELECT end_date,title FROM projects ORDER BY
> end_date DESC");
>
> Get the query results:
>
> while( ($rec = odbtp_fetch_array($qry)) ) {
> echo "end_date is $rec[0], title is $rec[1]<br>";
> }
>
> The outputs are:
>
> end_date is Object, title is 'blah blah'
> end_date is Object, title is 'lajd;fsakf'
> ....
>
> 'end_date' is of type DATETIME in Access. How DATETIME is actually
> stored in Acces? Can anybody give me an example? Why PHP shows it as
> Object? What should I do if I want end_date to be printed in the 'F j,
> Y' format, like 'March 31, 2005'?
>
> I'd appreciate any help.
>
> Bing
>[/color]