Fix date formats without divider

Formats like `yyyy` are splitted in `formatParts = [ 'y', 'y', 'y', 'y' ]` and not like `formatParts = [ 'yyyy' ]`.
Merge pull request #191 from indrimuska/master

Fix date formats without divider