rdm.sh
Attachments
History
Blame
View Source
Changelog
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
A - Z
Menu
Mesh
Howto
Date
66386f
Commit
66386f
2026-04-23 05:28:37
David Marsh
: -/-
howto/date.md
..
@@ 11,18 11,16 @@
## ISO8601 format
```bash
-
$ date --iso
-
2021-09-27
+
date --iso
```
MacOS date command doesn't support `iso`, here are some useful variations:
```bash
-
$ date "+%Y-%m-%d"
-
2021-09-27
-
+
date "+%Y-%m-%d"
+
```
+
```bash
$ date "+%Y%m%dT%H%M%S"
-
20210927T093333
```
## Yesterday and Tomorrow
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9