Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2013 年 9 月 26 日木曜日の次の形式で日付を取得したい。
曜日の名前は、Monday ではなく Monday のように完全である必要があり、月の形式も同じです。
このフォーマットを取得するには?
以下のようにPHPの日付関数を使用します。
echo date('l,F d,Y',strtotime($date));
Date Format
私は次のようにこれを得ました
$mydate=getdate(date("U")); echo "$mydate[weekday], $mydate[month] $mydate[mday], $mydate[year]";
また
$today = date(DATE_RFC822); echo date('l,F d,Y',strtotime($today));