Hi All,
I'm looking for a clean & simple approach for dealing with various date/time formats in xml/json when encoding/decoding that data to or from a struct.
The default format produced is ISO 8601.
If I need to represent my struct in json, and my struct fields of time.Time need to be represented in a format other than ISO 8601 how do I do that?
The same question applies to decoding, I need to receive json/xml that have date/times represented in a format other than ISO 8601. How do I decode that representation and get a populated struct?
I thought there may have been a field tag that would look something like this:
CreatedDateUTC time.Time `json:"myName,DateFormat(....)"`
Thanks,
-Jev