0

Reference to Magento documentation, I want to implement "Single Date and Time Picker" mentioned in http://devdocs.magento.com/guides/v2.1/pattern-library/getting-user-input/date_time_selector/date_time_selector.html.

enter image description here

0
<input name="datepicker" id="datepicker" title="datepicker" value="" type="text">
<script type="text/javascript">
    require([
        "jquery",
        "mage/calendar"
    ], function($){
        $('#datepicker').datetimepicker({
                stepMinute: 15,
                minDate: new Date(),
                dateFormat:'yy-mm-dd',
                beforeShowDay: $.datepicker.noWeekends,
                hourMin: 6,
                hourMax: 16
            }
        );
    });
</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.