A datetime's day.

Day = SRP_DateTime("Day", Datetime)

Returns

The day component of an OI datetime.

Parameters

ParameterDescription
DatetimeA datetime in OI internal format. (REQUIRED)

Remarks

The "Day" service returns the day component of an OI datetime. The day component would the day of the datetime's month and year, e.g., if an OI datetime represents March 30, 1978 at 12:41pm, this service would return 30. If the given datetime is not valid, "" is returned.

Examples

// Get today's day of the month
Day = SRP_DateTime("Day", DateTime())

// Get today's day of the month in UTC
Day = SRP_DateTime("Day", SRP_DateTime("Now", 1))

// Get a hard coded datetime's day of the month
Day = SRP_DateTime("Day", -9519.67241898148)

// Parse a datetime's day of the month
Datetime = SRP_DateTime("Parse", "Thursday, March 30, 1978 at 12:41:08pm", "DDD, MMMM D, YYYY at h:mm:sstt")
Day = SRP_DateTime("Day", Datetime)
  • No labels