I'm finally able to use a date picker after a long fight but it's not over...
My problem is : I want the date picker showing the format dd/mm/yy to the clients so I putted this script :
<script>
$(document).ready(function() {
$('.date').datepicker({ dateFormat: 'dd/mm/yy'});
});
</script>
And i'm calling it with this ( to modify my date attribut in my object) :
@Html.TextBox("date", null, new { @class = "date", @Value = DateTime.Today.Date })
The problem is, when I tried to submit this, it doesn't pass but when I use this script ( without dateFormat ) everything works perfectly :
<script>
$(document).ready(function() {
$('.date').datepicker();
});
</script>
So my question is, is there a way to change the view of the date for the client but not the content that's send ?
Thanks in advance !