[FX.php List] Find record using 'date'

Gjermund Gusland Thorsen ggt667 at gmail.com
Fri May 11 01:52:02 MDT 2007


I do not know why Chris did not put this into server_data.php I
probably send him too much stuff in an disorganized way...

function fmdate( $cM, $cD, $cY ) {
	/*
	$cM = currentMonth
	$cD = currentDay
	$cY = currentYear
	*/
	return substr( '00' . $cM, -2 ) . '/'
		. substr( '00' . $cD, -2 ) . '/'
		. cY );
}

Maybe it will be in the next release?

ggt667

On 5/10/07, Derrick Fogle <derrick at fogles.net> wrote:
> > the server OS, and I suspect one we missed is the time/date format.
> > I suspect that FSMA on this machine is using the system settings,
> > but we bungled them! AFAICT you can't set it afterwards like on the
> > client OS, just like you can't change its status from stand-alone to
>
> This discussion has come up on the list before. AFAIK, the FMPXML API
> is just plain stuck in American date format. Even if the rest of the
> install is working properly for other date formats, the XML API will
> still only take, and return, the American mm/dd/yyyy. For anything
> besides that, you'll need to use PHP to coerce date formats.
>
> $eurodate = date("d/m/Y",strtotime($americandate));
> $americandate = date("m/d/Y",strtotime($eurodate));
>
>
> Derrick Fogle
> derrick at fogles.net
>
>
>
> _______________________________________________
> 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