add date formatter to event js model