I was asked if a date code string could be used to sort/filter response data. To do this the data code string needs to be converted into a number that can be compared. Attached is an example of converting a date code string into a UNIX-like timestamp. See the custom query simple_timestamp().