Skip to content

Commit

Permalink
chore: Clean up Date To String node examples
Browse files Browse the repository at this point in the history
  • Loading branch information
erictuvesson committed Jun 18, 2024
1 parent ca59b62 commit 0bdbdf1
Showing 1 changed file with 11 additions and 55 deletions.
66 changes: 11 additions & 55 deletions nodes/utilities/date-to-string/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,61 +36,17 @@ The default format is this:

### Examples

#### Standard Date Format:

```
{year}-{month}-{date}
```

Output: 2024-05-24

#### Full Date and Time:

```
{year}-{month}-{date} {hours}:{minutes}:{seconds}
```

Output: 2024-05-24 14:30:15

#### Short Month Name with Date:

```
{date}-{monthShort}-{year}
```

Output: 24-May-2024

#### Time Only:

```
{hours}:{minutes}:{seconds}
```

Output: 14:30:15

#### Date and Time with Short Month:

```
{date}/{monthShort}/{year} {hours}:{minutes}
```

Output: 24/May/2024 14:30

#### Year and Month Only:

```
{year}/{month}
```

Output: 2024/05

#### Full Date in Slashes:

```
{date}/{month}/{year}
```

Output: 24/05/2024
Here is a list of example formats.

| Output | Format |
| - | - |
| 2024-05-24 | `{year}-{month}-{date}` |
| 2024-05-24 14:30:15 | `{year}-{month}-{date} {hours}:{minutes}:{seconds}` |
| 24-May-2024 | `{date}-{monthShort}-{year}` |
| 14:30:15 | `{hours}:{minutes}:{seconds}` |
| 24/May/2024 14:30 | `{date}/{monthShort}/{year} {hours}:{minutes}` |
| 2024/05 | `{year}/{month}` |
| 24/05/2024 | `{date}/{month}/{year}` |

## Inputs

Expand Down

0 comments on commit 0bdbdf1

Please sign in to comment.