fixes #1010

safe / sequential replacing of formatstrings for date conversions

please review & test
Merge pull request #1229 from tobibeer/fix-1010

fixes #1010 sequential date formatstrings