How to set a variable in textbox

hello friends
getting the current date and adding 1 day to the current…then wanted to set the variable in a text box
here is my code:
Date today = new Date()

String currentdate = today
use(TimeCategory) {
plusoneday = today + 1
plusoneday will have the tomorrows date and need to set that in a text box. tried with both ways but no luck

WebUI.setText(findTestObject(‘input_ApplicationDate’), plusoneday)

WebUI.sendKeys(findTestObject(‘input_ApplicationDate’), plusoneday)

please help.

Try this: How to add days & years to current date

You may need before using setText/sendKeys

The answer to the question below might help. Obviously, you would have “plus(1)” for tomorrow date.