Answers for "golang get day of week from time"

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

Code answers related to "golang get day of week from time"

Browse Popular Code Answers by Language