updating date parsing to use moment