refactored date parsing to injector instead of adapter