Java date format conversion – getting wrong month

Your fromFormat uses minutes where it should use months.

String fromFormat = "yyyy-MM-dd";

Leave a Comment