Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Oct 22, 2021
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