Creates a date from a given year, month, and day.

Date = SRP_Date("Encode", Year, Month, Day)

Returns

An OI date.

Parameters

ParameterDescription
YearA valid calendar year. (REQUIRED)
MonthA valid calendar month. (REQUIRED)
DayA valid day for the given month. (REQUIRED)

Remarks

The "Encode" service converts the components of a calendar date into a date in OI's internal format. For example, if Year is 1978, Month is 3, and Day is 30, this service will return 3742. If the parameters do not represent a valid calendar date, then "" is returned.

Examples

// Encode a date
Date = SRP_Date("Encode", 1941, 12, 8)
  • No labels