added custom format

This commit is contained in:
Ricardo Espinoza 2020-01-25 17:14:54 -05:00
parent 91e0697d97
commit bbd3a3bc8b

View file

@ -44,7 +44,7 @@ export class DateTime implements INodeType {
displayOptions: {
show: {
action:[
'format'
'format',
],
},
},
@ -52,6 +52,35 @@ export class DateTime implements INodeType {
default: '',
required: true,
},
{
displayName: 'Custom Format',
name: 'custom',
displayOptions: {
show: {
action:[
'format',
],
},
},
type: 'boolean',
default: false,
},
{
displayName: 'To Format',
name: 'toFormat',
displayOptions: {
show: {
action:[
'format',
],
custom: [
true,
],
},
},
type: 'string',
default: '',
},
{
displayName: 'To Format',
name: 'toFormat',
@ -59,7 +88,10 @@ export class DateTime implements INodeType {
displayOptions: {
show: {
action:[
'format'
'format',
],
custom:[
false,
],
},
},