I found an issue with the CalendarExtender when it is used in IE9...this same item seems to work in previous IE versions or IE9 compatibility mode. When I select a date that has a month or day with length of 1 digit, the leading zero(s) are not added in the TextBox. For example, I select April 9, 2012 and it is formatted in the textbox as 4/9/2012 instead of 04/09/2012.
This happens when:
- I don't set the CalendarExtender.Format value (take defaults)
- TargetControlID points to a TextBox and PopupButtonID points to an ImageButton (as they should)
I fixed it by setting the Format to "MM/dd/yyyy" explicitly.
I hope this helps others who may be frustrated by this. Also, anyone know why this is an IE9 issue?
This happens when:
- I don't set the CalendarExtender.Format value (take defaults)
- TargetControlID points to a TextBox and PopupButtonID points to an ImageButton (as they should)
I fixed it by setting the Format to "MM/dd/yyyy" explicitly.
I hope this helps others who may be frustrated by this. Also, anyone know why this is an IE9 issue?