Format calendar and latidue in the output file