Skip to content

Instantly share code, notes, and snippets.

@ebenito
Created March 5, 2019 08:00
Show Gist options
  • Save ebenito/f625d59e26fe8b832370bdafcc539730 to your computer and use it in GitHub Desktop.
Save ebenito/f625d59e26fe8b832370bdafcc539730 to your computer and use it in GitHub Desktop.
Convertir fecha texto a datetime, con formato:
DateTime fecha;
CultureInfo esES = new CultureInfo("es-ES");
DateTime.TryParseExact(fechaRep, "yyyy-MM-dd", esES, DateTimeStyles.None, out fecha);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment