Files
LeetCode-Go/leetcode/1185.Day-of-the-Week/1185. Day of the Week.go
2020-08-07 17:06:53 +08:00

8 lines
183 B
Go

package leetcode
import "time"
func dayOfTheWeek(day int, month int, year int) string {
return time.Date(year, time.Month(month), day, 0, 0, 0, 0, time.Local).Weekday().String()
}