Is it possible to convert string into time


(AkezhanOb1) #1

Helllo, is it possible to convert string “07:30:45AM” convert to the time type


(Norbert Melzer) #2

Yes, should be totally doable using time.Parse

https://golang.org/pkg/time/#Parse


(Michael De Barros) #3

Something like this: https://play.golang.org/p/TyNLzKal2YQ