Dates are always serialized as strings in the editor so when you want to rerender the component they are given strings where there should be dates.