Added 'ym'- & 'y'-date validation

Added regex in validation
Added tests analog to 'my'-date validation tests, extended the new tests even further
Merge pull request #1138 from ravage84/date-validation

Added 'ym'- & 'y'-date validation.