Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 22, 2021 03:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
fecha := "2021-10-21T22:12:53"
fechaComoTime, err := time.Parse("2006-01-02T15:04:05", fecha)
if err != nil {
fmt.Println("Error parseando fecha")
fmt.Println(err)
return
}
// Hasta aquí todo bien
fmt.Println("Fecha original: ")
fmt.Println(fechaComoTime)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment