[FX.php List] Date Format

Gjermund Gusland Thorsen ggt667 at gmail.com
Thu Nov 16 02:46:49 MST 2006


list( $m, $d, $y ) = explode( '/', $value['datefield'][0] );
echo date( "j F Y", mktime( 0, 0, 0, $m, $d, $y ) );

ggt667

2006/11/16, Roger Price <rp272 at cam.ac.uk>:
>
>
> I am new to PHP and FX.php in particular.
>
> In FMP I have a date field which is set to say: 16/11/2006. I would like to
> display this on a web page as 16 November 2006.
>
> I'm sure that this must be a very common question but I cannot find a simple
> solution anywhere. If I need the date in 'timestamp' format do I have to
> calculate this in FMP?  I tried formatting the field in FMP but of course
> this does not translate to the web!
>
> I would appreciate any help
>
> Roger
> _______________________________________________
> 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