Fixed issue with custom dateFormat.