SharePoint Query To Add Date To URL and Make it "Current Date"

Is it possible to use SharePoint API to trick the page into thinking the current date is that of something typed into a DataTable search? Then take the input.val() and append it to the query.