Fix date formats without divider

Formats like `yyyy` are splitted in `formatParts = [ 'y', 'y', 'y', 'y' ]` and not like `formatParts = [ 'yyyy' ]`.