@Html.EditorFor(model => model.Date, "{0:yyyy-M-d}", htmlAttributes:: new { @class = "date-pickpiku", @readonly = true }) TextBoxForつかえ、って説明見たけど別にEditorForで問題なさすぎてビビった。がうがう。

kiyo_hikokiyo_hiko のブックマーク 2015/08/10 18:21

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

MVC DateTime Textbox Formatting Issue

    I would like to do something like model.PickupDate.ToString("d") But MVC4 is not liking that very much. PickupDate is a DateTime field and I would like to strip off the time portion when displayed ...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう