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
Mohammed Rafi Khan
NA
349
34.5k
how to set minimum date in datetimepicker using jquery...?
Jun 14 2016 8:52 AM
the code i have tired is
@Html.EditorFor(model => model.taxDefination.EffectiveDate, "", new { htmlAttributes = new { @class = "form-control datePickerOnly", @id = "txteffectivefrom", @required = "required", @style = "z-index:99999;", @Value = Model.taxDefination.EffectiveDate.ToString("dd/MM/yyyy") } })
var today = new Date();
var dd = today.getDate() - 7;
var mm = today.getMonth() + 1; //January is 0!
var yyyy = today.getFullYear();
if (dd < 10)
{
dd = '0' + dd
}
if (mm < 10)
{
mm = '0' + mm
}
var today = dd + '-' + mm + '-' + yyyy;
$("#txteffectivefrom").datePickerOnly("option", "minDate", today);
it is not working
Reply
Answers (
1
)
Unable to start debugging on the web server.
how to use web grid and Form control in save view in MVC 5?