---
title: "Discussion on \"Go Cheatsheet - Date & Time\" | Hashnode"
description: "Discussion on \"Go Cheatsheet - Date & Time\". Date & Time\nGet current date & time\nnow := time.Now()\n// get current timestamp\nts := now.Unix()\n// get current timestamp nano\nts := now.UnixNano()\n\nFormat\nnow.Format(\"Monday January 2, 2006\")\nnow.Format(\"01/02/2006 15:04:05\")\nnow.Format(\"01/02/2006 3..."
url: "https://hashnode.com/posts/go-cheatsheet-date-and-time/60818591ff5fc65284a763c6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Go Cheatsheet - Date & Time](https://hn.0xbf.me/go-cheatsheet-date-and-time?utm_source=hashnode&utm_medium=feed)

Date & Time Get current date & time now := time.Now() // get current timestamp ts := now.Unix() // get current timestamp nano ts := now.UnixNano() Format now.Format("Monday January 2, 2006") now.Format("01/02/2006 15:04:05") now.Format("01/02/2006 3...

Apr 22, 2021 · 1 min read · hn.0xbf.me  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

  
[View profile](https://hashnode.com/@0xbf)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
