The date node displays a date in the user’s locale.
1 2 3 4 5p( text("I wrote this on "), date(1690344879000L) );
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16{ "type": "paragraph", "content": [ { "type": "text", "text": "I wrote this on " }, { "type": "date", "attrs": { "timestamp": "1690344879000" } } ] }
I wrote this on 26 Jul 2023
Note: This example output is not using AtlasKit to render the date, so while it gives a vague impression of what a “date” is, it does not faithfully reproduce the actual presentation in Atlassian products. This example also has a hardcoded rendering that does not respect the viewer’s locale.
| Confluence | Jira |
|---|---|
| ✅ | ✅ |
dateRate this page: