Change duration value on lighbox

I want to change value of duration and date by clicking on my customised button, Is it possible to do?