Hi All,
Please Suggest me to how to add number of Duration is HH:MM Format.
But only written in number format not to Time Format.
Here is my model.
public string Duration {get; set;}
here is my View,
@Html.LabelFor(model => model.Duration, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Duration, new { htmlAttributes = new { @class = "form-control", onkeypress = "javascript:return ValidateNmber(this,event);", Placeholder = "HH:MM" } })
@Html.ValidationMessageFor(model => model.Duration, "", new { @class = "text-danger" })
So please Suggest ASAP.

Suraj KumarRank #353 · 7.1K reputationPosted Oct 22, 2018, 1:19 AM EDT
Saurabh Suthar56 reputationPosted Oct 22, 2018, 2:24 AM EDT
ejaz mirzaRank #2,930 · 491 reputationPosted Nov 12, 2018, 12:32 AM EST