<!DOCTYPE html>
<html>
<body>

<input type="date" id="myDate"><br><br>

<button onclick="disableBtn()">Disable Date Field</button>
<button onclick="undisableBtn()">Undisable Date Field</button>

<p><strong>Note:</strong> input elements with type="date" do not show as any date field/calendar in Firefox.</p>

<script>
function disableBtn() {
    document.getElementById("myDate").disabled = true;
}

function undisableBtn() {
    document.getElementById("myDate").disabled = false;
}
</script>

</body>
</html>