Wednesday, March 21, 2012

CalendarExtender reads textbox as MM/dd/yyyy regardless of Format field.

Regardless of what I set the Format field to the CalendarExtender always reads the date from the textbox in american MM/dd/yyyy format.

My site is in NZ format dd/MM/yyyy.

Anyone know a workaround?

The problem is with the date parsing, in that I'm only currently doing new Date(dateString), which does not obey the format rules specified yet. There is no format-specific date parsing in javascript or in the AJAX core, so I will have to talk with the team to determine how best to handle this.

Picker has some more complicated parsing features I may generalize to support this, so keep an eye on the project progress while we attempt to resolvethis.


Thank you for your help. Is there any way I can work around the problem by manually altering the date the calendarextender at some event?


Hi,

I have just tested it basing on AJAX 1.0 and it works for me if I set format like dd-MM-yy and properly fill in the master text box.

Double check please if you master text box has AutoPostBack set to false.

Regards,

Adam Koszlajda

No comments:

Post a Comment