Select value integer formatted as a 2 digit number
<p>I have a month object and a dropdown field. I'm trying to submit an expiration month to the server but it expects the month to be formatted as a 2 digit integer. How do I do that without turning the number into a string?</p>

<p>My code (using AngularJS): </p>

<pre><code>$scope.months = [01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12];

&lt;select
    name="payment"
    ng-model="expiration_month"
    ng-options="m for m in months"
    required&gt;
       &lt;option value=""&gt;Month&lt;/option&gt;
 &lt;/select&gt;
</code></pre>

<p>Problem: it's submitting as 1 rather than 01. 
I've tried value="01", which keeps the 0 but it submits as a string and as soon as I parseInt() it looses the 0 at the front. 
Help. Please. Thank you.</p>