Hi All,
I have a portal in DNN 3.1.1 with extended language pack Italian.
I have extended the registration form, cause i need some new skills. When I manage roles for users (I didn't change this control, and the registration control it's only be extended and not modified in existing methode) and set the expiritydate, the calendar return a m/d/yyyy formatted date. The problem is the portal is set in Italian as default language for administrator and host users and the correct format is dd/mm/yyyy. This cause the seguent problem:
- If i select d:2, m:11, y:2007; become 11/2/2007 in the textbox associated: i'm able to save, but the roles for that user is already expired cause in italy dd/mm/yyyy then febrary is already pasted;
- If i select d:22, m:11, y:2007; become 11/22/2007 in the textbox associated: I cannot insert role cause mounth 22 doesn't exist;
- If i digit 02/11/2007 or 22/11/2007 directly in the textbox: Well done! It works fine.
I have opened the core project for find an answer and i have found this:
Return " popupCal('Cal','" & Field.ClientID & "','" & formatString & "','" & MonthNameString & "','" & DayNameString & "','" & Services.Localization.Localization.GetString("Today") & "','" & Services.Localization.Localization.GetString("Close") & "','" & Services.Localization.Localization.GetString("Calendar") & "'," & DateTimeformatInfo.CurrentInfo.FirstDayOfWeek & ");"
Debuggin: formatString = "dd/MM/yyyy" and other params are correctly in Italian.
I open the PopupCalendar.js file for find the problem. But, cause i'm not a good "java" developer, i've done the only logical things to do. I open a PopupCalendar.js present in the DNN package Version 4.6.2. And i found only 1 changes:
anchorVal = "<A HREF=\" window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + (thisMonth+1) + "/" + monthDate + "/" + thisYear + "');window.opener.closeCalPopup()\">";
become
anchorVal = "<A HREF=\" window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + constructDate(monthDate,thisMonth+1,thisYear) + "');window.opener.closeCalPopup()\">";
but this changes cannot solve my problem 
I'm surrender to evidence... i need the DNN forum help.
Thank you All
Ellis