# Date element in Jira: ADF date node and its wiki form

URL: https://goingstellar.ro/reference/jira-formatting/date/

Typing a date in the new editor can insert a date chip, shown in the viewer's locale. In ADF this is an inline date node with a timestamp. Wiki markup has no date macro, so the only way to make a chip is to send ADF.

## Wiki markup

There is no wiki markup for this element.

## Stored as ADF (REST API v3)

The ADF document Jira Cloud stores for `ADF:{"content": [{"content": [{"attrs": {"timestamp": "1796083200000"}, "type": "date"}], "type": "paragraph"}], "type": "doc", "version": 1}`:

```json
{
 "type": "doc",
 "version": 1,
 "content": [
  {
   "type": "paragraph",
   "content": [
    {
     "type": "date",
     "attrs": {
      "timestamp": "1796083200000"
     }
    }
   ]
  }
 ]
}
```

## Examples

ADF (API v3):

```
{"content": [{"content": [{"attrs": {"timestamp": "1796083200000"}, "type": "date"}], "type": "paragraph"}], "type": "doc", "version": 1}
```

Sends a date node with a timestamp in milliseconds. v2 shows it as monospaced year-month-day text.

Rendered by Jira (HTML):

```html
<p><tt>2026-12-01</tt></p>
```

Back to wiki after the round trip:

```
{{2026-12-01}}
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
{{monospaced}}
```

The wiki that v2 writes for a date is ordinary monospace, so a date chip and this text read the same in wiki.

Rendered by Jira (HTML):

```html
<p><tt>monospaced</tt></p>
```

Back to wiki after the round trip:

```
{{monospaced}}
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
{noformat:title=Log|borderStyle=dashed}
2026-11-29 ERROR
{noformat}
```

Writing the date as plain text in a log block. This is the form to use in wiki, and it stays text.

Rendered by Jira (HTML):

```html
<div class="preformatted panel" style="border-style: dashed;border-width: 1px;"><div class="preformattedHeader panelHeader" style="border-bottom-width: 1px;border-bottom-style: dashed;"><b>Log</b></div><div class="preformattedContent panelContent">
<pre>2026-11-29 ERROR
</pre>
</div></div>
```

Back to wiki after the round trip:

```
*Log*

{noformat}2026-11-29 ERROR{noformat}
```

Sent to Jira Cloud on 29 Nov 2026.

## What changes in conversion

- The date node is written to wiki as {{2026-12-01}}, which is monospaced text. The timestamp and the chip are lost.
- A date typed as wiki text stays text. It is not converted into a date node on the way to ADF.

## Pitfalls

- The probe sent 1796083200000, a timestamp in milliseconds, and read it back as 2026-12-01. The example in the documentation uses a shorter value, which was not tested.
- The chip is formatted in the viewer's locale in the editor, while the v2 output is always year-month-day.
- Do not search comment text for date chips through v2. They are only text there.

## Related

- [Status lozenge](https://goingstellar.ro/reference/jira-formatting/status/)
- [Macros that do not convert](https://goingstellar.ro/reference/jira-formatting/unsupported-macros/)
- [REST API v2 wiki markup vs v3 ADF](https://goingstellar.ro/reference/jira-formatting/api-v2-vs-v3/)

## Sources

- [Text Formatting Notation Help (Jira, in-product help)](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all)
- [ADF node: date (Jira Cloud platform)](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/date/)

