I Made Peace with Go's Date Formatting

by nnxon 6/18/2025, 11:47 PMwith 1 comments

by npallion 6/19/2025, 12:27 AM

  time.Now().Format("Monday, January 2, 2006 at 15:04")
  // Try on the Go Playground: https://go.dev/play/p/kOWlG6bdvbC
You can change it to time.Now.Format("Monday, January 345, 2006 at 588:46") and it will compile and run fine, printing junk. No compile or runtime checks, is there any language that is this broken in dates. Most should print some error or something right?