not caching last used date pattern, introduces date order bug