How is the years interval related to the dialog not being closed?
The B4XDialog templates are expected to behave like a dialog where the user can close them. You can create your own template based on the date template code (rename the class) and use it without modifying the library code.
The buttons produced by arguments passed to ShowTemplate close the dialog when being pressed, but I don't want that.
I want to keep the dialog alive and instead change a variable eg: iYearsChange = 10.
Actually this idea is not possible as the code to do with the yearchange is in the template, so I can't do that without changing
So, I think the way to this would be to create my own template.
But perhaps in that case it might be simpler to just use the AnotherDatePicker class.
Will have a look though at making my own DateTemplate and thanks for that suggestion.