Hi Guys
I have managed to resolve the issue with the date format and ie7, the problem to do with both IE7 and DNN. Let me explain!
Having tested the PopupCalendar in IE6, IE7 and FireFox 2.0, IE6 and Firefox 2.0 don't have a problem returning the date in the correct format in my case d/M/yyyy, however the date is not returned in the correct format in IE7 the reason being when you click on the day in the PopupCalendar in IE7 the event which is fired is onclick and then the href link is followed where as in IE6 and FireFox 2.0 the only event which is fired is onclick.
The PopupCalendar.js located in the ~/js/ folder uses the following two statements to generate the java script for populating the Textbox which the PopupCalendar has been attached to.
anchorVal = "<A HREF=\" window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + (thisMonth+1) + "/" + monthDate + "/" + thisYear + "');window.opener.closeCalPopup()\">";
jsVal = " window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + constructDate(monthDate,thisMonth+1,thisYear) + "');window.opener.closeCalPopup()";
As you can see the constructDate function is used where as the href link does not use contructDate.
So to solve the problem I simply replaced the anchorVal line with the following code and that did the trick.
anchorVal = "<A HREF=\" window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + constructDate(monthDate,thisMonth+1,thisYear) + "');window.opener.closeCalPopup()\">";
I hope the above helps people as it defiantly caused me a sleepless night or two.
Kind Regards