def date(date):
date = date.value<EOL>return (datetime.strptime(date[:-<NUM_LIT:5>], '<STR_LIT>')<EOL>if len(date) == <NUM_LIT><EOL>else datetime.strptime(date, '<STR_LIT>'))<EOL>
DokuWiki returns dates of `xmlrpclib`/`xmlrpc.client` ``DateTime``
    type and the format changes between DokuWiki versions ... This function
    convert *date* to a `datetime` object.