Java DateTimeFormatter to PHP date().

23 of 26 fields map cleanly; 3 have no PHP date() token.

PHP date()

yyyy-m-d H:i

Reference · Mon, Jan 2 2006, 3:04:05 PM MST

yyyy-01-02 15:04

yyyy-01-02 15:04

Right now, your zone

Not in the Java DateTimeFormatter table: y — passed through untranslated.