Typescript Create Date From String Format Function