Go Time Format Converter (time.Time)
Go formats time with layout strings based on the reference time `Mon Jan 2 15:04:05 MST 2006` — you do not use `yyyy`/`MM`, you use `2006`/`01`. Go also ships named constants: `time.Kitchen`, `time.Stamp`, `time.StampNano`, `time.RFC822`, `time.RFC822Z`, `time.RFC1123` and `time.RFC1123Z`.
This converter renders your date-time in each of these Go constants so you can see exactly what `t.Format(time.RFC3339)` or `t.Format(time.Kitchen)` will print.
Go Time Format Converter (time.Time) Quick Reference
| Format | Pattern / Description | Example 1 | Example 2 |
|---|---|---|---|
| Go Layout (Reference) | Standard layout for Go | 2026-08-13T14:30:00Z | 2026-01-01T00:00:00Z |
| Go Kitchen | Kitchen time format (3:04PM) | 2:30PM | 12:00AM |
| Go Stamp | Jan _2 15:04:05 | Aug 13 14:30:00 | Jan 1 00:00:00 |
| Go StampNano | Stamp with nanoseconds | Aug 13 14:30:00.000000000 | Jan 1 00:00:00.000000000 |
| Go RFC822 | 02 Jan 06 15:04 MST | 13 Aug 26 14:30 GMT | 01 Jan 26 00:00 GMT |
| Go RFC822Z | 02 Jan 06 15:04 -0700 | 13 Aug 26 14:30 +0000 | 01 Jan 26 00:00 +0000 |
| Go RFC1123 | Wed, 24 Apr 2024 06:35:45 GMT | Thu, 13 Aug 2026 14:30:00 GMT | Thu, 01 Jan 2026 00:00:00 GMT |
| Go RFC1123Z | Wed, 24 Apr 2024 14:35:45 +0800 | Thu, 13 Aug 2026 14:30:00 +0000 | Thu, 01 Jan 2026 00:00:00 +0000 |
* Examples are rendered in UTC for the fixed sample instants above.
When to Use Go Time Format (time.Time)
Choosing a format constant
Pick the right Go constant for logs (`time.StampNano`), HTTP headers (`time.RFC1123`), or APIs (`time.RFC3339`) by previewing the output.
Writing custom layouts
Verify a custom layout string like `2006-01-02 15:04:05` produces the intended output before deploying.
Cross-language parity
Confirm a Go timestamp matches what a Python or Java consumer expects by comparing all rendered variants side by side.
Frequently Asked Questions
What is the Go time layout reference?
Go uses `Mon Jan 2 15:04:05 MST 2006` as the reference; your layout re-uses those tokens (e.g. `2006-01-02` = year-month-day). There is no `yyyy-MM-dd` in Go.
What is the difference between RFC822 and RFC822Z?
`RFC822` = `02 Jan 06 15:04 MST` (abbreviated year); `RFC822Z` uses a numeric zone `02 Jan 06 15:04 -0700`. Same for RFC1123 (`Mon, 02 Jan 2006 15:04:05 MST`) vs RFC1123Z (`... -0700`).
What does time.Kitchen print?
`2:04PM` (hour:minute with AM/PM, no seconds, no date). Ideal for compact UI time display.
What does time.Stamp print?
`Jan _2 15:04:05` — e.g. `Aug 13 14:30:00`. `StampNano` adds nanoseconds: `Aug 13 14:30:00.123456789`.
Related Time Format Converters
All Format Guides
Need to Convert Between All Formats?
Use the main Time Format Converter for instant conversion across 100+ formats — epoch, ISO 8601, RFC 3339, SQL datetime, military time and more in one click.
Open Time Format Converter