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.
この関数date("y-M-d H:m:s")は、23年7月12日19:07:35を返します。
date("y-M-d H:m:s")
しかし、2012-07-2319:07:35を返すためにそれが必要です。
7月の代わりに07を、12の代わりに2012を書くにはどうすればよいですか(yyyyはこれを行いません)。
http://php.net/date
これは機能するはずです:
date("Y-m-d H:m:s")
日付だと思います('Ymd H:m:s')