Added missing functions for dates
Improved scope validation and added tests for it