---
title: weekNumberFormat
---

Controls the week number text.

<div class='spec'>

[Date Formatter](date-formatting), *default*: `&#123; week: 'narrow' &#125;`

</div>

The formatted text depends on [weekText](weekText).

If set to `&#123; week: 'short' &#125;`, and `weekText` is set to `"W"`, a value like `"W 6"` will be outputted.

If set to `&#123; week: 'narrow' &#125;`, and `weekText` is set to `"W"`, a value like `"W6"` will be outputted.

If set to `&#123; week: 'numeric' &#125;`, a plain numeric value like `"6"` will be outputted.
