Interface DateTimeV1NodeParameters

Source
interface DateTimeV1NodeParameters {
    action?: "calculate" | "format";
    custom?: boolean;
    dataPropertyName?: string;
    duration?: number;
    operation?: "add" | "subtract";
    options?:
        | {
            fromFormat?: string;
            fromTimezone?: string;
            toTimezone?: string;
        }
        | { fromFormat?: string };
    timeUnit?:
        | "minutes"
        | "hours"
        | "days"
        | "weeks"
        | "months"
        | "quarters"
        | "years"
        | "seconds"
        | "milliseconds";
    toFormat?: string;
    value?: string;
}

Properties§

Source§

readonly action?: "calculate" | "format"

Default: "format"

Source§

readonly custom?: boolean

Whether a predefined format should be selected or custom format entered

Source§

readonly dataPropertyName?: string

Name of the property to which to write the converted date Default: "data"

Source§

readonly duration?: number

E.g. enter “10” then select “Days” if you want to add 10 days to Date Value. Type options: {"minValue":0}

Source§

readonly operation?: "add" | "subtract"

Default: "add"

Source§

readonly options?:
    | {
        fromFormat?: string;
        fromTimezone?: string;
        toTimezone?: string;
    }
    | { fromFormat?: string }

Default: {}

Source§

readonly timeUnit?:
    | "minutes"
    | "hours"
    | "days"
    | "weeks"
    | "months"
    | "quarters"
    | "years"
    | "seconds"
    | "milliseconds"

Time unit for Duration parameter above Default: "days"

Source§

readonly toFormat?: string

The format to convert the date to

Source§

readonly value?: string

The value that should be converted