mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
41 lines
880 B
TypeScript
41 lines
880 B
TypeScript
|
import type { INodeProperties } from 'n8n-workflow';
|
||
|
|
||
|
export const CurrentDateDescription: INodeProperties[] = [
|
||
|
{
|
||
|
displayName:
|
||
|
'You can also refer to the current date in n8n expressions by using {{ $now }} or {{ $today }}. More info',
|
||
|
name: 'notice',
|
||
|
type: 'notice',
|
||
|
default: '',
|
||
|
displayOptions: {
|
||
|
show: {
|
||
|
operation: ['getCurrentDate'],
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Include Current Time',
|
||
|
name: 'includeTime',
|
||
|
type: 'boolean',
|
||
|
default: true,
|
||
|
description: 'Whether deactivated, the time will be set to midnight',
|
||
|
displayOptions: {
|
||
|
show: {
|
||
|
operation: ['getCurrentDate'],
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Output Field Name',
|
||
|
name: 'outputFieldName',
|
||
|
type: 'string',
|
||
|
default: 'current_date',
|
||
|
description: 'Name of the field to put the output in',
|
||
|
displayOptions: {
|
||
|
show: {
|
||
|
operation: ['getCurrentDate'],
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
];
|