zeomega/soaplib — pull request #1 by madhav (2011-10-19 13:00:25+00:00)
Title: Addition of FormattedDate Data type to soaplib API

Hello Everybody,

I have added a new Data Type called FormattedDate, which can be used in a case where Date needs be extracted in a customized format. Meaning, lets say ASSIGNED_DT of a particular episode needs to be extracted. Currently its being extracted in the ISO standard format(like, 2011-09-26 T00:00:00). But lets say the client needs it in a format like MM-DD-YYYY instead of the above, for their processing. There is no way to over-ride the format of the date as of now. But with this new data type, you can do it.

Usage: FormattedDate(...., format="%m-%d-%Y")

The above field definition will prepare a node with the value in the above required format(09-26-2011).
Please review it and let me know if I am missing anything. Testcases are also supplied(although they are a bit ugly)