Golang Format Date String

Golang uses a specific date and time to specify how to format its date string instead of alphabets. To format into this format in C# “dd-MMM-yyyy HH:mm:ss” it requires the below format.

2006-Jan-02 15:04:05

Sample source code below to show how to format the date string into other styles.