Convert "ES" Date

Hi all,

Someone will know how to transform a chain that indicates a date and transform it into a datetime.
Example (this in Spanish) 20 de junio de 2019, and transform it to datetime dd-MM-yy, either in English or Spanish

Thanks

Hello @askPWC

DateTime.Parse(“20 de junio de 2019”, new System.Globalization.CultureInfo(“es-MX”)) will parse this as a Mexican Spanish date. Using “es-ES” will use Spain Spanish, I don’t know if there’s much of a difference where dates are concerned.

2 Likes

@DanielMitchell
Thanks

1 Like

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