goweb-gin-demo/utils/excel.go

10 lines
171 B
Go
Raw Normal View History

2021-11-08 18:06:18 +08:00
package utils
import "time"
func GetExcelFileName() string {
now := time.Now()
currTime := now.Format("2006-01-02_15-04-05")
return "reports_" + currTime + ".xlsx"
}