getting date parsing to work in all browsers