DateTime Add
Adds a time span to a date/time.
Revision History
1.0.0.3 Initial release
Properties
DateTime
Type: Object Input
The initial/date-time value. May be a .NET DateTimeOffset object passed from another Node or a string representation of a date/time. If left empty, the current UTC date/time will be used.
TimeSpanUnit
Type: List Input
The time unit represented by TimeSpan
.
- Milliseconds - Indicates that
TimeSpan
is specified in milliseconds. - Seconds - Indicates that
TimeSpan
is specified in seconds. - Minutes - Indicates that
TimeSpan
is specified in minutes. - Hours - Indicates that
TimeSpan
is specified in hours. - Days - Indicates that
TimeSpan
is specified in days.
TimeSpan
Type: Object Input
The amount of time to add in units of TimeSpanUnit
.
ResultFormat
Type: String Input
The format string to be used to render the resulting date/time to the Result
Property. If omitted, Result
will return a .NET DateTimeOffset object instead of a string of the date/time.
Result
Type: Object Output
The date/time that is the result of adding TimeSpan
units of TimeSpanUnit
to DateTime
.
Remarks
Use this Node to add or remove a period of time from a given date/time.
When TimeSpan
is a positive value, time will be added. When TimeSpan
is a negative value, time will be subtracted.
To use this Node to retrieve the current UTC time, leave both DateTime
and TimeSpan
empty. Set ResultFormat
to the desired format for the returned time (e.g. hh:mm
) or leave it empty to return a .NET DateTimeOffset object instead of a string rendering of a date/time.