Refactor Date and DateStep
Merge pull request #5458 from texdc/Refactor-Date-Validator

[Validator] Refactor Date
[#5458] CS fixes

- Added blocks where necessary
- Conditional structures
- constant docblocks
Merge branch 'feature/5458' into develop

Close #5458