DateTime.Parse error

DictonaryDemo1.xaml (10.2 KB)

Attached is the sequence created for Dictionary Demo. I am trying to assign the Dictionary key value to a datetime variable. But that assign throws error
“Assign: String was not recognized as a valid DateTime.”
the key value i am using are for eg: “21/03/1988” which is a valid date format. Then why do i get the error . can somebody help me ?

System see that MM/dd/yyyy and saying there is no 21 month.

Try this;

DateTime.ParseExact(yourString, “dd/MM/yyyy”, System.Globalization.CultureInfo.InvariantCulture)

1 Like

have used DateTime.ParseExact(myString,''dd/MM/yyyy",nothing) and it is working fine.

Then mark as solution :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.