go-common/app/admin/main/up/service/upcrmservice/utils.go

12 lines
228 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package upcrmservice
import (
"time"
)
//GetDateStamp get date from time stamp
func GetDateStamp(timeStamp time.Time) time.Time {
var y, m, d = timeStamp.Date()
return time.Date(y, m, d, 0, 0, 0, 0, timeStamp.Location())
}