DateTime.ParseExact("16/06/2022", {"dd/MM/yyyy","dd.MM.yyyy"}, CultureInfo.InvariantCulture, DateTimeStyles.None)

DateTime.ParseExact(“16/06/2022”, {“dd/MM/yyyy”,“dd.MM.yyyy”}, CultureInfo.InvariantCulture, DateTimeStyles.None) alguien podria ayudarme, en la ultima parte donde dice DateTimeStyles me dice no esta declarado que esta innaccesible a su nivel de protección


For now, can you try the following expression?

DateTime.ParseExact("16/06/2022", {"dd/MM/yyyy","dd.MM.yyyy"}, System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None)


1 Like

Thank you!

1 Like

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