Input:date as a button?

I want to use <input type="date"> but I want the ui for selecting the date to pop up when a button is clicked and a function to run after they enter a date