I have a textbox that should accept datetime formats only. I am not sure how to convert this in MVC. I also want to know how to rearrange to a "yyyyMMdd" format, which is what needs to be passed.
<%=Html.TextBox("effectiveDate") %>
My controller has nothing :X
public ActionResult Index()
{
return View();
}
I know I am missing something... what is it?
I am not worried about entering a bad date right now... I just want to get the conversion concept.