How to subtract two different field date in python?
<p>I have some problem,
I use python.</p>

<p>I have 2 var, like</p>

<pre><code>ads = fields.Date('Admission Date', help='Date of admission')
dds = fields.Date('Discharge Date', help='Date of discharge')
</code></pre>

<p>I have one var to subtract the date,</p>

<pre><code>los=ads-dds
</code></pre>

<p>but, I have some error:</p>

<pre><code>unsupported operand type(s) for -: 'datetime.datetime' and 'datetime.date'
</code></pre>

<p>what should I do to get the result of los?</p>
