I have input type date like below.
I can't select current date in above example. Please help.
Check the snippet added

```js
function CheckD()
{
    var current=new Date(document.getElementById('task_date').value);
    var today=new Date();
    if(current.getTime() <= today.getTime())
    {
        alert("You Can't Assign Task For Expired Date");
        document.getElementById('task_date').value="";
    }
    else
    {
        return true;
    }
}
```

```html
<input type="date" id="task_date" name="task_date" class="form-control" onchange="return CheckD();">
```