We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DatePicker value not being posted back on Safari (iPad)

The following code works on Chrome (PC) but NOT on Safari (iPad).

Other form control data IS posted back correctly e.g the Note control, BUT the MeetingDate is not.

<form asp-controller="Meetings" asp-action="New" asp-route-jobid="@Model.JobId" method="post">
    <ej-date-picker id="MeetingDate" ej-for="MeetingDate" date-format="dd/MM/yyyy" width="100%"></ej-date-picker>
     <textarea asp-for="Note" class="form-control" rows="5"></textarea>
    <input type="submit"value="Save">

Can you help?

3 Replies

SN Sasikala Nagarajan Syncfusion Team June 28, 2017 04:58 PM UTC

Hi Mark, 
Thanks for contacting Syncfusion support, 

We are unable to get your query, can you please share the details about your issue that will help us to prompt solution. 

  1. Whether the controls even didn’t rendered properly in safari?
  2. Whether the controls renders fine in safari but not posting form values only?
Also, in your application we have noticed that you have set the difference date format to DatePicker. If you facing any this issue(formatting) in post back due to this DateFormat, then please use below code in your startup.cs file to resolve 

            var cultureInfo = new CultureInfo("en-US"); 
            CultureInfo.DefaultThreadCurrentCulture = cultureInfo; 
            CultureInfo.DefaultThreadCurrentCulture.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy"; 

Sasikala Nagarajan  

MC Mark Chidlow June 28, 2017 05:53 PM UTC

Thank you Sasikala. It appears that the date-format setting without the culture being set has caused the problem.

Again - great support from Syncfusion.

SN Sasikala Nagarajan Syncfusion Team June 29, 2017 05:15 AM UTC

Hi Mark, 
We are glad to hear that the issue has been resolved in your end. Please get back to us if you need any further assistance, 
Sasikala Nagarajan  

Live Chat Icon For mobile
Up arrow icon