blob: 2502f4c0f714f48996e7ac0ec5c1e2e510994361 [file] [log] [blame]
package main
import (
"fmt"
"time"
)
func main() {
now := time.Now()
fmt.Printf("Standard format: %v\n", now)
fmt.Printf("American format: %v\n", now.Format("Jan 2 2006"))
fmt.Printf("European format: %v\n", now.Format("02/01/2006"))
fmt.Printf("Chinese format: %v\n", now.Format("2006/01/02"))
}