title: Save data from input only if it's in a right format
body: <p>Currently I have two input fields. One for date and another for time. What I am trying to do is to prevent saving the default value of these fields, since now I am able to actually save the placeholders values and I want to be able to save something only if it's a date or hour.</p>
  
  <p>Here is my html : </p>
  
  <pre><code>&lt;div class="form-group"&gt;
          &lt;label class="control-label col-sm-2" for="date" "&gt;Date:&lt;/label&gt;
          &lt;div class="col-sm-2"&gt;
            &lt;input type="date" class="form-control"&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
    &lt;div class="form-group"&gt;
          &lt;label class="control-label col-sm-2" for="text"&gt;Hour:&lt;/label&gt;
          &lt;div class="col-sm-2"&gt;
            &lt;select class="form-control" id="time"&gt;
              &lt;option value="Time" class=""&gt;Time&lt;/option&gt;
                          &lt;option value="10am" class=""&gt;10:00-10:30&lt;/option&gt;
                          &lt;option value="1030am" class=""&gt;10:30-11:00&lt;/option&gt;
                          &lt;option value="11am" class=""&gt;11:00-11:30&lt;/option&gt;
                          &lt;/select&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>Please, help!</p>