[FX.php List] Date Format in fx.php

Craig Forster criag at qmediagroup.net
Thu Jan 27 16:24:18 MST 2005


Hi.

I am using fx.php to query a Filemaker 7 database... And have worked out the
basics.

One thing I am stuck on is date Formatting. I am using the following query
to get the date field from the database

 <?php putenv("TZ=NZ"); echo $deliveriesData['Date Due'][0]; ?>

Which gives me (for example) 1/26/04.

In this part of the world, people are used to reading dates dd/MM/YYYY, so I
need to change the result to New Zealand formatted.

My question is where do I do this? If there a preference in fx.php, or maybe
my php.ini file, or do I have to write a parser to convert the info. (note,
filemaker is set to use current system format for dates...

Any help appreciated.

Regards,
Craig




More information about the FX.php_List mailing list