Splits a datetime into a date and time.
Info = SRP_DateTime("Split", Datetime)
Returns
An @FM delimited array containing the date followed by the time.
Parameters
Parameter | Description |
---|---|
Datetime | A datetime in OI's internal format. (REQUIRED) |
Remarks
The "Split" service separates the datetime into date and times, both of which are in their respective internal OI formats. The structure of the return value is as follows:
Field | Description |
---|---|
<1> | The datetime's date in OI's internal date format. |
<2> | The datetime's time in OI's internal time format. |
This is more convenient than calling the "Date" and "Time" services separately, especially if you use our unpacking syntax. If Datetime is not valid, "" is returned.
Examples
// Split the current datetime into a date and time the old-fashioned way Info = SRP_DateTime("Split", DateTime()) Date = Info<1> Time = Info<2> // Split the current datetime using unpacking (Date, Time) = SRP_DateTime("Split", DateTime())