solving date parsing on event edit page