Add relation getter and format date and datetime field for storage