To convert to_date to current_date dynamically you have to use the below JS code.
var d = new Date;
var dformat = d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate()+" 00:00PM";
In this case “endDate” is my filter name which I want as a current date.
Save and refresh the cache you see the result.