0

i have been wondering how i can calculate age using bootstrap datepicker

This is my datepicker

<script>
    $(function() {
        $( "#datepicker" ).datepicker({
            dateFormat : 'yy-mm-dd',
            changeMonth : true,
            changeYear : true,
            yearRange: '-100y:c+nn',
            maxDate: '1d'
        });

    });
  </script>
Script47
  • 14,230
  • 4
  • 45
  • 66
evvnnxx18
  • 77
  • 7
  • Hi Putri - I'm struggling to find an actual question here. At which particular point are you stuck? – Lewis Sep 17 '19 at 14:45
  • hi @Lewis can you give me example how to calculate age using datepicker with date format yy-mm-dd – evvnnxx18 Sep 17 '19 at 14:49
  • 1
    Possible duplicate of [Calculate age given the birth date in the format YYYYMMDD](https://stackoverflow.com/questions/4060004/calculate-age-given-the-birth-date-in-the-format-yyyymmdd) – Lewis Sep 17 '19 at 14:55
  • Possible duplicate of [Twitter Bootstrap date picker](https://stackoverflow.com/questions/8267858/twitter-bootstrap-date-picker) – Sylhare Sep 17 '19 at 15:57

0 Answers0