6

Closed

MaskedEdit: The months and date fields swap values when you hit submit if UserDateFormat is set.

description

Closed May 3, 2013 at 7:06 AM by Superexpert
Issues is closed as it is fixed with April 2013 release.

comments

bevancoleman wrote Jun 15, 2007 at 1:32 AM

I beleive this is the same error, but in my case the MaskedEditExtender is switching from dd/MM/yyyy to MM/dd/yyyy on postback.

This occurs when I don't specify CultureName="en-AU" on the MaskedEditExtender, but if I don't it seems to ignore the Culture and UICulture tags set on the page.

allenfirth wrote Jul 6, 2007 at 11:45 AM

I am having a similar problem. I have a TextBox, Image control, Calendar control and MaskedEditExtender control on a page to facilitatge the capture of a date field. I have specified the UserDateFormat of the MaskedEditExtender control to be DayMonthYear, the Mask to be "99/99/9999" the MaskType to be "Date" and the Format of the Calendar control to be "dd/MM/yyyy". However, when the page loads, the date populated in the TextBox displays as "MM/dd/yyyy", thereafter, when ever I interact with the TextBox, for example if I use the Calendar control to pick a date the date is then displayed in the correct Format of dd/MM/yyyy. When I submit the page for saving, the page reloads (after saving my data) and the date has reverted to the incorrect format of MM/dd/yyyy.

tbroyer wrote Jul 24, 2007 at 4:10 PM

Actually, DayMonthYear and MonthDayYear are inverted in UserDateFormat !!!

Workaround: put this into your app's skin:

I don't know about other values for UserDateFormat.