TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Saurabh Suthar
NA
62
2.9k
How to Add HH:MM Format in MVC
Oct 22 2018 4:31 AM
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,
<div class="form-group">
@Html.LabelFor(model => model.Duration, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-4">
@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" })
</div>
</div>
So please Suggest ASAP.
Reply
Answers (
3
)
How to check the dates are missing in squence
Is operator functionality