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§
§§§§§§§§§§§§§
readonly custom Format?: string§readonly date?: string§
readonly duration?: numberThe number of time units to add to the date
readonly end Date?: string§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"
readonly include Time?: booleanWhen deactivated, the time will be set to midnight Default: true
readonly magnitude?: stringThe date that you want to change
readonly mode?: "roundDown" | "roundUp"Default: "roundDown"
readonly operation?:
| "addToDate"
| "extractDate"
| "formatDate"
| "getCurrentDate"
| "getTimeBetweenDates"
| "roundDate"
| "subtractFromDate"Default: "getCurrentDate"
readonly options?:
| {
includeInputFields?: boolean;
timezone?: string;
}
| { includeInputFields?: boolean }
| {
fromFormat?: string;
includeInputFields?: boolean;
timezone?: boolean;
}
| { includeInputFields?: boolean; isoString?: boolean }Default: {}
readonly output Field Name?: stringName of the field to put the output in Default: "currentDate"
readonly part?:
| "hour"
| "day"
| "week"
| "month"
| "year"
| "minute"
| "second"Default: "month"
readonly start Date?: string§readonly time Unit?:
| "minutes"
| "hours"
| "days"
| "weeks"
| "months"
| "quarters"
| "years"
| "seconds"
| "milliseconds"Time unit for Duration parameter below Default: "days"
readonly to?: "month"Default: "month"
readonly to Nearest?:
| "hour"
| "day"
| "week"
| "month"
| "year"
| "minute"
| "second"Default: "month"
readonly units?: (
| "hour"
| "day"
| "week"
| "month"
| "year"
| "minute"
| "second"
| "millisecond"
)[]Default: ["day"]
The date that you want to format