标签:parse 备份 format inpu style bsp color int col
太短小在这里备份
1. time.Time to string
format string : "2006-01-02 15:04:05.999999999 -0700 MST"
t.Format("2006-01-02")
2. time format string to int
time.Parse("2006-01-02", input)
3. yyyy-mm-dd string to yyyymmdd string
strings.Replace(input, "-", "", -1)
标签:parse 备份 format inpu style bsp color int col
原文地址:https://www.cnblogs.com/GW977/p/11199439.html