Separated date formatting and parsing functions to DateUtil class. Modified how timezone is printed to workaround Java date formatting issue.