Does the style of the formatter in the parse method of the DateTime class have to match the exact style of the string? For instance, I\'m getting a TimeStamp object from the
Figured it out. To get the correct format, you have to call formatter.print(localDateTime object) and it worked.