I'm creating a form with two date selectors. Currently, they look like:
<input type="date" class="form-control" name="contract_start" value="<?php echo $contract_start; ?>">
<input type="date" class="form-control" name="contract_end" value="<?php echo $contract_end; ?>">
Right now, on the form, the default values for the date selectors just say "mm/dd/yyyy". I'd like to know how I can alter this so that the contract_start
input is the current date, and the contract_end
input is 10 months from the current date by default. How can I do this?