A datetime's day of the year.
DayOfYear = SRP_DateTime("DayOfYear", Datetime)
Returns
The day of the year upon which an OI date falls.
Parameters
Parameter | Description |
---|---|
Datetime | A datetime in OI internal format. (REQUIRED) |
Remarks
The "DayOfYear" service returns the day of the year in which an OI datetime occurs. For example, if an OI date represents March 30, 1978 at 12:41:08pm, this service would return 89, since this datetime would be the 89th day of the year 1978. Leap years are taken into account. If the given datetime not valid, "" is returned.
Examples
// Get today's day of the year DayOfYear = SRP_DateTime("DayOfYear", Date()) // Get today's day of the yearin UTC DayOfYear = SRP_DateTime("DayOfYear", SRP_DateTime("Now", 1)) // Get a hard coded datetime's day of the year DayOfYear = SRP_DateTime("DayOfYear", -9519.67241898148) // Parse a datetime's day of the year Datetime = SRP_DateTime("Parse", "Thursday, March 30, 1978 at 12:41:08pm", "DDD, MMMM D, YYYY at h:mm:sstt") DayOfYear = SRP_DateTime("DayOfYear", Datetime)