datepicker for australian format

1 posts, 0 answers
  1. Mark
    Mark avatar
    8 posts
    Member since:
    Oct 2012

    Posted 29 Oct 2012 Link to this post

    Hi, 

    I have the problem with getting datepicker to work. it said invalid format, please advise

    shared/_Layout.cshtml

    <head>
    <script src="@Url.Content("~/Scripts/cultures/kendo.culture.en-AU.min.js")" type="text/javascript"></script>


            <script type=”text/javascript”>


            //set the Kendo UI culture


                kendo.culture("en-AU");


            </script>

    </head>

    Date.cshtml

    @model DateTime?
     
    @(Html.Kendo().DatePickerFor(m => m)
                   .Format("d/MM/yyyy")
                   //.Value(Model.HasValue ? Model.Value.ToShortDateString() : string.Empty)
              
                   .Value(Model)
                   )
Back to Top