Question on Date and URL format in source

dateFormat does to things:

  • converts the last arg into a time.Time. If it’s already a time.Time, it does nothing
  • calling t.Format(layout)

So, in your case, yes.

But date formatting in Go can be confusing, there is even a web page around about it.

1 Like