Update ExtendedDateFormat.java

- Fixed lexAnalyzer;
- Added pattern validation and the possibility to change the pattern.