node.js

To disable previousdate in node ejs

i am trying to disable the previous date for a input date field(ejs file) in my project,code in main entry point
app.locals.deactivateDate = () => {
let today = new Date().toISOString().split(‘T’)[0]

$(‘#taskDueDate’).setAttribute(‘mi…