I'm still hugging MVC.
I saw several similar questions, some kind of custom code and various methods, but I did not find what works for me.
I have a search model that populates an HTML table with results inside a partial view. I have this in my model of search results:
public DateTime? BeginDateTime { get; set; }
What is set in DateTime.Now in the controller. The user can specify this date and time to start the task with the data of the search results by calling the POST model.
What I would like to do is confirm that the date / time that the user determined is at least 1 minute in the future. If this can be done as a check on the client side, it will be better, but I am open to options while it works.
View:
Begin update: @Html.TextBoxFor(o => o.BeginDateTime, new { id="txtBegin" })
Thanks.
source share