Calculates the next send date, taking now as the reference point in time.

Syntax

Smartsite SXML CopyCode image Copy Code
datetime smidata.getnextsenddate(enum interval, string time, enum weekDay, integer monthDay)
datetime smidata.getnextsenddate(enum interval, string time, integer weekDay, integer monthDay)
datetime smidata.getnextsenddate(datetime referenceDate, enum interval, string time, enum weekDay, integer monthDay)
datetime smidata.getnextsenddate(datetime referenceDate, enum interval, string time, integer weekDay, integer monthDay)

Parameters

Name Data Type Description
interval Enum The interval.
Enum values:
  • Never
  • Daily
  • Weekly
  • Monthly
time String Time (e.g. 12:00)
weekDay Enum The day of the week (0=sunday, 1=monday, etc).
Enum values:
  • Sunday
    Indicates Sunday.
  • Monday
    Indicates Monday.
  • Tuesday
    Indicates Tuesday.
  • Wednesday
    Indicates Wednesday.
  • Thursday
    Indicates Thursday.
  • Friday
    Indicates Friday.
  • Saturday
    Indicates Saturday.
monthDay Integer The day of the month.
referenceDate DateTime The time from which the next date is calculated.

Return Value

Data Type Description
DateTime

Expand image Remarks

SXML