A date's month.

Month = SRP_Date("Month", Date)

Returns

The month component of an OI date.

Parameters

ParameterDescription
DateA date in OI internal format. (REQUIRED)

Remarks

The "Month" service returns the month component of an OI date. For example, if an OI date represents March 30, 1978, this service would return 3. If the given date not valid, "" is returned.

Examples

// Get the current month
Month = SRP_Date("Month", Date())

// Get the current month in UTC
Month = SRP_Date("Month", SRP_Date("Today", 1))

// Get a hard coded date's month
Month = SRP_Date("Month", -9519)

// Parse a date's month
Date = SRP_Date("Parse", "Thursday, March 30, 1978", "DDD, MMMM D, YYYY")
Month = SRP_Date("Month", Date)
  • No labels