Typescript Create Date Object From Array To Hashmap