I have a stored procedure, which has the parameters OrderID
(bigint
) and ApprovalDateTime
(varchar(25)
)
The SP simply updates an XML column called UserDef
with the following XML for a given OrderID
:
<UserDef>
<ApprovalDateTime>01/01/2013 13:30:30</ApprovalDateTime>
</UserDef>
My question is, while storing a date time value like this in an XML column, what format is best?
- The ISO 8601 XML format like
2002-05-30T09:00:00
- a String like
01/01/2013 13:30:30
or - Unseparated format like
20130101 13:30:30
- or any other format
Which one would you recommend?
This date will be extracted in another stored procedure for presenting in an SSRS report's column.