Adding date parsing to Angular