Exception: "String was not recognized as a valid DateTime" for Czech iPhone user

We received a crash report from the SfDatePicker when a user tried to set a date value in our application

DateTimeParse.ParseExact (System.ReadOnlySpan`1[T] s, System.ReadOnlySpan`1[T] format, System.Globalization.DateTimeFormatInfo dtfi, System.Globalization.DateTimeStyles style)
DateTime.ParseExact (System.String s, System.String format, System.IFormatProvider provider)
SfDatePicker+<>c__DisplayClass26_0.<UpdateDays>b__0 ()
NSAsyncActionDispatcher.Apply ()
(wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)
Application.Main (System.String[] args)

The user is based in the Czech Republic with their iPhone 8 running iOS 15.6 set to the Slovak language. I expect this is an issue with the code trying to get the current date and parsing an unknown/non-standard datetime format for the user's current culture.

As this is within the SF library I cannot fix this and would appreciate any feedback if there is something that we can do short of waiting for a SF package update.


2 Replies

VV Vijayakumar Viswanathan Syncfusion Team August 31, 2022 12:12 PM UTC

Hi Andrew, 


Currently, we are validating the reported issue and we will let you know the details on September 1, 2022. We appreciate your patience until then.

 

Regards,

Vijayakumar V



RS Ruba Shanmugam Syncfusion Team September 1, 2022 12:36 PM UTC

Hi Andrew,


Query: Exception: "String was not recognized as a valid DateTime" for Czech iPhone user


We have prepared a sample based on the provided information using the Format dd_MMM_yyyy and set the Slovak language in the iPhone Simulator. But, we were unable to replicate the reported issue on our side. We have prepared a sample for your reference and please get it from the attachment.


We ask you to try our sample and if your requirement is different, please explain to us briefly and share the replication steps with the sample. It will help us to provide the proper solution at the easiest.  Please let us know if you need any other details.


Regards,

Ruba Shanmugam


Attachment: DatePicker_Sample_26cd99c.zip

Loader.
Up arrow icon