title: How to unpack binary formatted dates in python?
body: <p>In a database export file i have a column with dates which are stored in binary format.
  I'm trying to unpack dates in the file so that "\x07\xdb\x0c\x01" becomes "01-12-2011" again.</p>
  
  <p>I know how the hexadecimal values corresspond to their decimal counterpart,</p>
  
  <pre><code>0x07DB = 2011
  0x0C = 12
  0x01 = 01
  </code></pre>
  
  <p>But how to properly unpack these formatted dates?</p>