mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-11 23:02:54 +01:00
Initial commit
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com> Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com> Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com> Co-Authored-By: Michael Cartner <32543275+michaelcartner@users.noreply.github.com>
This commit is contained in:
60
nodes/utilities/date-to-string.md
Normal file
60
nodes/utilities/date-to-string.md
Normal file
@@ -0,0 +1,60 @@
|
||||
---
|
||||
hide_title: true
|
||||
hide_table_of_contents: true
|
||||
title: Date To String
|
||||
---
|
||||
|
||||
<##head##>
|
||||
|
||||
# Date To String
|
||||
|
||||
This node translates a <span className="ndl-data">date</span> type input and outputs a <span className="ndl-data">string</span> based on your specified format.
|
||||
|
||||
<div className="ndl-image-with-background l">
|
||||
|
||||

|
||||
|
||||
</div>
|
||||
|
||||
The format is specified as a <span className="ndl-data">string</span> that can include the following special syntax: `{date}`, `{month}`, `{monthShort}`, `{year}`, `{hours}`, `{minutes}` and `{seconds}`.
|
||||
|
||||
<##head##>
|
||||
|
||||
- **{date}** The numeric date part.
|
||||
- **{month}** The numeric month 1 = January, 12 = December.
|
||||
- **{monthShort}** The numeric month 1 = Jan, 12 = Dec.
|
||||
- **{year}** The numeric year.
|
||||
- **{hours}** The numeric hour, between 0..23
|
||||
- **{minutes}** The numeric minute, between 0..60
|
||||
- **{seconds}** The numeric second, between 0..60
|
||||
|
||||
The default format is this:
|
||||
|
||||
```
|
||||
{year}-{month}-{date}
|
||||
```
|
||||
|
||||
## Inputs
|
||||
|
||||
<div className="ndl-table-35-65">
|
||||
|
||||
| Data | Description |
|
||||
| ---------------------------------------- | -------------------------------------------------------------------- |
|
||||
| <span className="ndl-data">Format</span> | This is where the format string is specified, see above for details. |
|
||||
| <span className="ndl-data">Date</span> | The date input to format. |
|
||||
|
||||
</div>
|
||||
|
||||
## Outputs
|
||||
|
||||
<div className="ndl-table-35-65">
|
||||
|
||||
| Data | Description |
|
||||
| ----------------------------------------------- | -------------------------- |
|
||||
| <span className="ndl-data">\*Date String</span> | The formatted date string. |
|
||||
|
||||
| Signal | Description |
|
||||
| ------------------------------------------------ | ------------------------------------------------------ |
|
||||
| <span className="ndl-signal">Date Changed</span> | Sends a signal when the formatted date string changed. |
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user