created scope for date handling
created scope for date handling