RXS_timestampToChar()
Use RXS_timestampToChar() to easily convert a timestamp coming from your database or program to an XML format that matches the requirements in the XSD (XML Schema Definition). This will save the headache of programming for all of the different timestamp formats out there and doing a bunch of sub-stringing and concatenation.
Valid keywords for pFormat are listed below:
- yyyy = Year
- MM = Month
- dd = Day
- hh = Hour
- mm = Minute
- ss = Second
- SS = Millisecond
Typical usage would look like:
myStr = RXS_timestampToChar('yyyy-MM-ddThh.mm.ss': %Timestamp());
Subprocedure Prototype
|
Converts a timestamp field into a character value. |
|
Required The timestamp format in which to return the character data. |
|
Required The timestamp to be converted. |