Files
twenty/packages/twenty-front
oliver 53042cc9dc Date field format display (#11384)
## Introduction

This PR enables functionality discussed in [Layout Date
Formatting](https://github.com/twentyhq/core-team-issues/issues/97).

### TLDR;
It enables greater control of date formatting at the object's field
level by upgrading all DATE and DATE_TIME fields' settings from:

```ts
{
    displayAsRelativeDate: boolean
}
```

to:

```ts

type FieldDateDisplayFormat = 'full_date' | 'relative_date' | 'date' | 'time' | 'year' | 'custom'

{
    displayFormat: FieldDateDisplayFormat
}
```

PR also includes an upgrade command that will update any existing DATE
and DATE_TIME fields to the new settings value

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Félix Malfait <felix@twenty.com>
Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
2025-04-18 07:00:02 +00:00
..
2025-01-03 15:18:02 +01:00
2025-04-18 07:00:02 +00:00
2025-04-09 17:35:25 +02:00
2025-04-17 16:03:51 +02:00
2025-04-09 01:03:43 +02:00
2025-04-17 16:03:51 +02:00
2025-04-17 16:03:51 +02:00
2025-04-15 13:32:12 +02:00
2025-04-16 17:49:04 +02:00

Run yarn dev while server running on port 3000