Is there an equivalent to php date() style formatting in Java? I mean, in php I can backslash-escape characters to have them treated literally. I.e. yyyy \\y\\e\\a\\
Just for completeness, Java 8's DateTimeFormatter also supports this:
DateTimeFormatter
DateTimeFormatter.ofPattern("yyyy 'year'");