Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Clean up Date To String node examples #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading