I am using RangeValidator to validate date enter in textbox and its working fine with default date format but now i want the date format in \"dd/MM/yyy\" but its generating
Format of the MinimumValue and MaximumValue should be yyyy/MM/dd
Check documentation here: https://msdn.microsoft.com/en-us/library/ydez7ad7(v=vs.110).aspx
MinimumValue & MaximumValue need to be set in the Page_PreRender event and appear to require the date format as "dd-MM-yy"...see last post on Rangevalidator Min Max Value error
protected void Page_PreRender(object sender, EventArgs e)
{
RangeValidator1.MinimumValue = DateTime.Now.Date.ToString("dd-MM-yy");
RangeValidator1.MaximumValue = DateTime.Now.Date.AddYears(90).ToString("dd-MM-yy");
}