Handle Date Time in the Edit Mode

if you're facing a problem like if DateTime is not bind in the Edit Mode You can Use The below way :

@Html.TextBoxFor(model => model.CreatedDate, @"{0:yyyy-MM-dd}", new { @class = "form-control" ,  @type = "date"})

it works for me!!

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM