JSFiddle - React, Tailwind, and code Playground

HTML

<input type='text' />

JavaScript

$("input").datepicker({
            duration: 0,
            showOn:'button',
            constrainInput: true,
            showTime: true,
            stepMinutes: 30,
            stepHours: 1,
            altTimeField: '',
            time24h: true,
            minDate: 0
});

$("input").change(function() {
    var date = new Date($(this).val()).getDay();
    if(date == 0 || date == 6) {
        alert('weekend');
    }
});