updat exemple, and fix date type