Typescript Remove Specific Character From String To Date