You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But to retrieve a date from the database and convert to time.Time, I searched quite a lot and tried different methods to go from datatypes.Date() to time.Time.
I got this to work but I'm sure its probably not the best method.
Your Question
In the documentation it talks about how to go from time.Time to datatypes.Date() - insert a time into database.
Reference:
https://github.com/go-gorm/datatypes/
https://github.com/go-gorm/datatypes/blob/master/date.go
But to retrieve a date from the database and convert to time.Time, I searched quite a lot and tried different methods to go from datatypes.Date() to time.Time.
I got this to work but I'm sure its probably not the best method.
The document you expected this should be explained
https://github.com/go-gorm/datatypes/
Expected answer
It would be good to have best practice in the readme on how to do this.
The text was updated successfully, but these errors were encountered: