Answers for "golang get today's weekday"

Go
0

golang get day of week from time

weekday := time.Now().Weekday()
fmt.Println(weekday)      // "Tuesday"
fmt.Println(int(weekday)) // "2"
Posted by: Guest on June-24-2020

Browse Popular Code Answers by Language