Use Model.created_at.strftime("%FT%T"). where, %F - The ISO 8601 date format (%Y-%m-%d) %T - 24-hour time (%H:%M:%S).
確定! 回上一頁