> Subject: Re: [PHP] Need a better way...
>
> function mysql_to_date($mysql)
> {
> return ( $mysql ? date('m/d/Y', strtotime($mysql) ) : '' );
> }
>
> -js
>
>
> Todd Cary wrote:
> > My coding is not very concise and I would appreciate
function mysql_to_date($mysql)
{
return ( $mysql ? date('m/d/Y', strtotime($mysql) ) : '' );
}
-js
Todd Cary wrote:
My coding is not very concise and I would appreciate suggestions on how
to clean this up even though it works:
/* MySQL to date */
function mysql_to_date($mysql) {
$ret
My coding is not very concise and I would appreciate suggestions on how
to clean this up even though it works:
/* MySQL to date */
function mysql_to_date($mysql) {
$retval = "";
if ($mysql) {
$parts = explode("-", $mysql);
$mo = $parts[1];
$dy = $parts[2];
$yr = $parts
3 matches
Mail list logo