prepare to edit datetimes