datetime.datetime - day field out of range
<p>I have found very useful datetime.datetime object when dealing with dates, however I have situation now where datime.datetime isn't working for me.During execution of the program, day field is dynamically calculated and here's the problem:</p>

<pre><code>&gt;&gt;&gt; datetime.datetime(2013, 2, 29, 10, 15)
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ValueError: day is out of range for month
</code></pre>

<p>OK, February doesn't have 29 days, but would be great if datetime could figure that out and return this object</p>

<pre><code>datetime.datetime(2013, 3, 1, 10, 15)
</code></pre>

<p>What's the best way to solve this situation ? So, I'm looking for a general solution, when day argument is bigger than number of days month could have.</p>
