DateTime::format DateTimeImmutable::format DateTimeInterface::format date_format 指定した書式でフォーマットした日付を返す &reftitle.description; &style.oop; public stringDateTime::format stringformat public stringDateTimeImmutable::format stringformat public stringDateTimeInterface::format stringformat &style.procedural; stringdate_format DateTimeobject stringformat 指定した書式でフォーマットした日付を返します。 &reftitle.parameters; &date.datetime.description; format date が理解できる書式指定文字列。 &reftitle.returnvalues; 成功した場合にフォーマット済みの日付文字列、&return.falseforfailure;。 &reftitle.examples; <function>DateTime::format</function> の例 &style.oop; format('Y-m-d H:i:s'); ?> ]]> &style.procedural; ]]> &example.outputs; &reftitle.notes; このメソッドはロケールを考慮しません。出力結果はすべて英語となります。 &reftitle.seealso; date