Download the formatter and run it with: To reformat changed lines in a specific patch, use google-java-format-diff.py. Note: There is no configurability as to the formatter's algorithm for formatting.
yyyy-MM-dd'T'HH:MM:ss.SSS'Z' 2017-07-09T13:14:45.947Z yyyy-MM-dd'T'HH:MM:ss'Z' 2017-07-09T11:54:42Z yyyy-MM-dd'T'HH:MM:ss 2017-07-09T11:54:42 ...