This is a migrated thread and some comments may be shown as answers.

datepicker for australian format

2 Answers 176 Views
Globalization
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 29 Oct 2012, 06:09 AM
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)
               )

2 Answers, 1 is accepted

Sort by
0
Carlos
Top achievements
Rank 1
answered on 07 Apr 2020, 07:28 AM
I have the same problem.
0
Petar
Telerik team
answered on 10 Apr 2020, 05:49 AM

Hi Carlos,

As the original post in the current ticket is from 2012, can you give us more details about the issue you experience?

What is the scenario? Can you provide a code for reproducing the behavior to the definition of the component? Which Kendo UI version do you use? 

Regards,
Petar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Globalization
Asked by
Mark
Top achievements
Rank 1
Answers by
Carlos
Top achievements
Rank 1
Petar
Telerik team
Share this question
or