DATECALC

The DATECALC function modifies the input date and time string according to the defined specifications.

Input/Output

Number of Connections: Min: 1/Max:2
InputData TypeDescription
Input1DateTimeThe original date and time.
Input2IntegerSets the Calc property. (optional)

OutputData TypeDescription
Output1DateTimeThe new date and time. The specified Position of the original date and time string is incremented by the amount specified by the Calc property.

Property

NameProperty TypeDescription
PositionchoiceThe position in the original date or time string to be incremented.

Year - increments the year
Month - increments the month
Day - increments the day
Hour - increments the hour
Minute - increments the minutes
Second - increments the seconds
CalcintThe value added to the specified Position in the original date and time string. A negative value (-) can be specified.
HolidayActionchoiceSpecifies how to handle when the calculated date is holiday.
None [0] - Output calculated date even if it's holiday.
NextDay [1] - Output next non-holiday date.
PrevDay [-1] - Output previous non-holiday date.
HolidayholidaySpecifies the holiday setting name created by FSMC.

Topic

Example

PropertyOutput
Input 12002-12-31T00:00:00.000PositionDay2003-01-01T00:00:00.000
Calc1