Answers for "golang time get date monday"

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