boring/util/dateconv.go

13 lines
146 B
Go
Raw Normal View History

2017-02-03 13:29:15 -07:00
package main
import (
"fmt"
"os"
"time"
)
func main() {
t, _ := time.Parse("2006-01-02", os.Args[1])
fmt.Println(t.Format(time.RFC1123))
}