Adding date as a serializable object type