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.
Stack Overflow-ers、
を使用するだけで変数$raw_dateを20130216として出力できますが、同じ変数echo $raw_date;から16/02または16/02/2013のいずれかを出力できるようにしたいと思います。$raw_date
$raw_date
echo $raw_date;
これは可能ですか?もしそうなら、どのように?
ありがとう、ジェイミー
$d = DateTime::createFromFormat('Ymd', $raw_data); echo $d->format('d/m/Y');