dongfeng-pay/legend/utils/dateTime.go

14 lines
194 B
Go
Raw Normal View History

2021-04-27 15:33:49 +08:00
package utils
import "time"
func GetNowTime() string {
t := time.Now().Format("2006-01-02 15:04:05")
return t
}
2021-05-04 16:16:14 +08:00
func GetNowDate() string {
t := time.Now().Format("2006-01-02")
return t
}