interface DateTimeV2NodeParameters {
customFormat?: string;
date?: string;
duration?: number;
endDate?: string;
format?:
| "custom"
| "X"
| "x"
| "MM/dd/yyyy"
| "yyyy/MM/dd"
| "MMMM dd yyyy"
| "MM-dd-yyyy"
| "yyyy-MM-dd";
includeTime?: boolean;
magnitude?: string;
mode?: "roundDown"
| "roundUp";
operation?:
| "addToDate"
| "extractDate"
| "formatDate"
| "getCurrentDate"
| "getTimeBetweenDates"
| "roundDate"
| "subtractFromDate";
options?: | {
includeInputFields?: boolean;
timezone?: string;
}
| { includeInputFields?: boolean }
| {
fromFormat?: string;
includeInputFields?: boolean;
timezone?: boolean;
}
| { includeInputFields?: boolean; isoString?: boolean };
outputFieldName?: string;
part?:
| "hour"
| "day"
| "week"
| "month"
| "year"
| "minute"
| "second";
startDate?: string;
timeUnit?: | "minutes"
| "hours"
| "days"
| "weeks"
| "months"
| "quarters"
| "years"
| "seconds"
| "milliseconds";
to?: "month";
toNearest?: | "hour"
| "day"
| "week"
| "month"
| "year"
| "minute"
| "second";
units?: (
| "hour"
| "day"
| "week"
| "month"
| "year"
| "minute"
| "second"
| "millisecond"
)[];
}
Properties§
Source§readonly format?:
| "custom"
| "X"
| "x"
| "MM/dd/yyyy"
| "yyyy/MM/dd"
| "MMMM dd yyyy"
| "MM-dd-yyyy"
| "yyyy-MM-dd"
readonly format?:
| "custom"
| "X"
| "x"
| "MM/dd/yyyy"
| "yyyy/MM/dd"
| "MMMM dd yyyy"
| "MM-dd-yyyy"
| "yyyy-MM-dd"
The format to convert the date to Default: "MM/dd/yyyy"
Source§readonly include Time?: boolean
readonly include Time?: boolean
When deactivated, the time will be set to midnight Default: true
Source§readonly operation?:
| "addToDate"
| "extractDate"
| "formatDate"
| "getCurrentDate"
| "getTimeBetweenDates"
| "roundDate"
| "subtractFromDate"
readonly operation?:
| "addToDate"
| "extractDate"
| "formatDate"
| "getCurrentDate"
| "getTimeBetweenDates"
| "roundDate"
| "subtractFromDate"
Default: "getCurrentDate"
Source§readonly options?:
| {
includeInputFields?: boolean;
timezone?: string;
}
| { includeInputFields?: boolean }
| {
fromFormat?: string;
includeInputFields?: boolean;
timezone?: boolean;
}
| { includeInputFields?: boolean; isoString?: boolean }
readonly options?:
| {
includeInputFields?: boolean;
timezone?: string;
}
| { includeInputFields?: boolean }
| {
fromFormat?: string;
includeInputFields?: boolean;
timezone?: boolean;
}
| { includeInputFields?: boolean; isoString?: boolean }
Default: {}
Source§readonly output Field Name?: string
readonly output Field Name?: string
Name of the field to put the output in Default: "currentDate"
Source§readonly part?:
| "hour"
| "day"
| "week"
| "month"
| "year"
| "minute"
| "second"
readonly part?:
| "hour"
| "day"
| "week"
| "month"
| "year"
| "minute"
| "second"
Default: "month"
Source§readonly time Unit?:
| "minutes"
| "hours"
| "days"
| "weeks"
| "months"
| "quarters"
| "years"
| "seconds"
| "milliseconds"
readonly time Unit?:
| "minutes"
| "hours"
| "days"
| "weeks"
| "months"
| "quarters"
| "years"
| "seconds"
| "milliseconds"
Time unit for Duration parameter below Default: "days"
The date that you want to format