LayoutDate
Overview
Part of the time package — Node.js analog: moment, dayjs (package timex).
Use this constant or variable directly — no function call required.
Signature
go
const LayoutDateCompare: Node.js · Standard Go · gox
js
// Typical moment, dayjs (package timex) pattern in Node.jsgo
// Use the underlying stdlib or driver directly.
// See package overview for escape hatches.go
import "github.com/sahilkhaire/gox/time"
formatted := timex.Format(t, timex.LayoutDate)Example
go
import "github.com/sahilkhaire/gox/time"
formatted := timex.Format(t, timex.LayoutDate)Standard library alternative
gox wraps the Go standard library or a trusted dependency with Node-familiar naming. You can use the underlying library directly — see the package overview for escape hatches.