note 45728 added to function.date

From: Date: Thu, 16 Sep 2004 13:10:09 +0000
Subject: note 45728 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-76825@lists.php.net to get a copy of this message
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))))); } ?> ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45728 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45728&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45728&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76825) next »