fix(Date & Time Node): Add fromFormat option to solve ambiguous date strings (#7675)

Github issue / Community forum post (link here to close automatically):
https://community.n8n.io/t/spreadsheet-date-issue/31551

---------

Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
Elias Meire
2023-11-10 14:30:13 +01:00
committed by GitHub
parent 3c0734bd2d
commit d2d11e0208
3 changed files with 36 additions and 14 deletions

View File

@@ -119,6 +119,16 @@ export const FormatDateDescription: INodeProperties[] = [
default: {},
options: [
includeInputFields,
{
displayName: 'From Date Format',
name: 'fromFormat',
type: 'string',
default: 'e.g yyyyMMdd',
hint: 'Tokens are case sensitive',
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-id
description:
'Format in which the input \'Date\' is, it\'s helpful when the format is not recognized automatically. Use those <a href="https://moment.github.io/luxon/#/formatting?id=table-of-tokens&id=table-of-tokens" target="_blank">tokens</a> to define the format.',
},
{
displayName: 'Use Workflow Timezone',
name: 'timezone',