note 45728 deleted from function.date by tularis

From: Date: Sun, 30 Jan 2005 14:44:17 +0000
Subject: note 45728 deleted from function.date by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84229@lists.php.net to get a copy of this message
Note Submitter: luca at STOP-SPAMlucazappa dot com ---- This function convert a data from W3C to RFC 2822 format. Only one row, but seems it works! W3C format: http://www.w3.org/TR/NOTE-datetime RFC 2822 format: http://www.ietf.org/rfc/rfc2822.txt <?php // Convert a date from W3C ro RFC 2822 format function convertDateW3CtoRFC2822($dateW3C) { return date('r',strtotime(str_replace("+"," +",str_replace("T"," ",ereg_replace("([+].*):","\\1",$dateW3C))))); } ?>

« previous php.notes (#84229) next »