Hello,
I have built a mvc HTML Extension using the date picker based on
http://codesprouts.com/post/Creating-A-DatePicker-Extension-In-ASPNet-MVC.aspx
(plus a bit of additonal logic)

In our site master the includes for jquery are
<link href="/Themes/Default//Content/ui.all.css" rel="stylesheet"
type="text/css" />
    <script src="/Scripts/jquery-1.3.2.min.js" type="text/
javascript"></script>
    <script src="/Scripts/jquery-1.3.2.js" type="text/javascript"></
script>
    <script src="/Scripts/jquery-ui-1.7.custom.min.js" type="text/
javascript"></script>
    <script src="/Scripts/jquery-ui-1.7.2.custom.min.js" type="text/
javascript"></script>
    <script src="/Scripts/jquery/validate/jquery.validate.js"
type="text/javascript"></script>
    <script src="/Scripts/jquery/UI/jquery-ui-1.7.2.custom.js"
type="text/javascript"></script>
    <script src="/Scripts/jquery/UI/ui.core.js" type="text/
javascript"></script>
    <script src="/Scripts/jquery/UI/ui.datepicker.js" type="text/
javascript"></script>

My code in the HTML page is:

selected date range from <input id="CurrentSearchDateRangeFromDate"
name="CurrentSearchDateRangeFromDate" style="width:120px;border: 0px
solid #000000;" type="text" value="27/06/2009" /><script type="text/
javascript">$(document).ready(function() { $
('#CurrentSearchDateRangeFromDate').datepicker({showOn: 'button' ,
buttonImageOnly: true , buttonImage: '../Themes/Default/Images/shared/
MyAccount/Calendar.png' , duration: 0 , monthNames: ['January',
'February', 'March', 'April', 'May', 'June', 'July', 'August',
'September', 'October', 'November', 'December'] , monthNamesShort:
['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct',
'Nov', 'Dec'] , dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr',
'Sa'] , dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri',
'Sat'] , dateFormat: 'dd/mm/yyyy' })});</script>

This is for a UK formated Date. ( In my Html Helper I am getting all
the date formats  from a cultureInfo object)

for example when I select the 06/07/2009 I expect the textbox to
contain that value, the problem is that instead it holds
06/07/20092009. I have tried clearing the textbox first and selecting
a number of different dates but each time I get the additional year in
the textbox.

Can anyone tell me what I doing wrong?
Thanks
Martin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to