I have an form field thats is saved on the db as an integer. Its a simple due day.
<input name="due_day" type="text" id="due_day" class="input-mini" maxlength="2" />
What I would like to do is to compare this due day value to the current date to see the difference. For example the bill due date is every 15th of the month and today is the 12th of Dec. I would like show the difference from today to the next due day which is the 15th of december and display that value. How should I go about this?
Thank you.