![]() |
[PHP] Datum als String in anderes Format
Hi,
ich habe ein Datum in einem sehr komischen Format.
Code:
Gibt es eine Möglichkeit das elegant und einfach z.B. in
Tue, 16 Nov 2004 22:56:18 +0100
Code:
umzuwandeln?
16.11.2004, 22:56
Chris |
Re: [PHP] Datum als String in anderes Format
Code:
MfG Pr0g
<?php
// in Timestamp umwandeln $timestamp = strtotime('Tue, 16 Nov 2004 22:56:18 +0100'); // als formatiertes Datum ausgeben echo date('d.m.Y, H:i', $timestamp); ?> |
Re: [PHP] Datum als String in anderes Format
Hi,
danke. :) Genau das habe ich gesucht. Chris |
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:33 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz