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

Gjermund Gusland Thorsen ggt667 at gmail.com
Fri Jan 28 05:03:10 MST 2005


That topic is covered in the forum: http://fxdialog.comitas.no
If I remember by heart this should help you out?

$time = explode( '/', $deliveriesData['Date Due'][0] );
echo date( 'j / n - Y', mktime( 0, 0, 0, $time[0], $time[1], $time[1] ) );

Gjermund

On Fri, 28 Jan 2005 12:24:18 +1300, Craig Forster <criag at qmediagroup.net> wrote:
> 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
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>


More information about the FX.php_List mailing list