Fix normalizeFormat

Date.normalizeFormat() now works well.

Method formatReplace was overloaded and can return normalized format or formated date, based on context.