How to handle the Dynamic xpath for calender

Right now i have used the “//*[starts-with(@id,‘datepicker-03G’)]/strong” where alphabet “G” has changed to another.
So would b great if any one help me on this. Whats the solution for these kind of dynamic changes

WebUI.executeJavaScript('$(\':input\').removeAttr(\'readonly\')', [])
WebUI.setText(findTestObject('Page_name/input_IdName'), '2022-01-01')

you can copy this in the script.