Help to set date and time in Air Datepicker

0

I'm implementing Air Datepicker but I can not find more documentation, what I need is for example, to set the current date and time, something like setDate in the bootstrap Datepicker. The code is as follows:

<html>
<head>
    <link href="http://t1m0n.name/air-datepicker/dist/css/datepicker.min.css" rel="stylesheet" type="text/css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="http://t1m0n.name/air-datepicker/dist/js/datepicker.min.js"></script>

    <!-- Include English language -->
    <script src="http://t1m0n.name/air-datepicker/dist/js/i18n/datepicker.es.js"></script>
</head>
<body>
    <input id="minMaxExample" type="text">
    <script>
        $('#minMaxExample').datepicker({
            language: 'es',
            setDate: new Date() // Now can select only dates, which goes after today
        })
    </script>
</body>

    
asked by Flaquito183 30.01.2018 в 20:05
source

0 answers