Why is mktime() returning unexpected results?
<pre><code>$date['start'] = date("o-m-d", mktime(0, 0, 0, 1, 1, 2010));
$date['end'] = date("o-m-d", mktime(0, 0, 0, 2, 1, 2010));
</code></pre>

<p>Each element contains <code>2009-01-01</code>, <code>2010-02-01</code> respectively. Why is the first element returning 2009, when it has been specified as 2010?</p>

<p>What I am trying to achieve is to specify a date I can use in a MySQL query, like:</p>

<p><code>SELECT subject, created_on FROM issues WHERE created_on BETWEEN 2010-01-01 AND 2010-02-01 ORDER BY created_on</code></p>
