戈朗 使用基于示例的模板和 。ParseFormat01 -> month with zero prefix02 -> day with zero prefix06 -> year (last two digits)15 -> hour (24h based)04 -> minutes with zero prefix05 -> seconds with zero prefix2006 -> long yeart, _ := time.Parse("02/01/06 15.04", "18/09/21 14.56")t.Format("2006-01-02 15:04:05") // 2021-09-18 14:56:00有关更多布局选项,请参阅 https://stackoverflow.com/a/69338568/12301864