Mailinglisten-Archive |
Hallo,
at Sunday 06.05.01 (04:11 +0200), Stefan wrote:
>Wie kann ich diesen in ein formateirtes Datum ausgeben /umwandeln ?
function ChangeTimestamp ($svDate,$mode)
{
$year =3D substr($svDate,0,4);
$month =3D substr($svDate,4,2);
$day =3D substr($svDate,6,2);
$hour =3D substr($svDate,8,2);
$minute=3D substr($svDate,10,2);
$sec =3D substr($svDate,12,2);
if ($mode=3D=3D1) {
$svDateOutput=3D $year."-".$month."-".$day;
}
elseif ($mode=3D=3D2) {
$svDateOutput=3D $hour.":".$minute;
}
else
{
$svDateOutput =3D $day.".".$month.".".$year;
}
return $svDateOutput;
}
Versuchs mal hiermit. ;-))
Gru=DF
Michael
--=20
Phone +49 5723 98077-0
Fax +49 5723 98077-1
Mobil +49 173 4315914
http://www.macbyte-computing.de/
php::bar PHP Wiki - Listenarchive