When getting a value from db, if this is a timestamp or a date, convert it automatically to a string and no object