Using:
String URL = driver.getCurrentUrl();
I get something like this:
firstname=&lastname=&sex=Male&exp=1&datepicker=11%2F30%2F2020&photo=&continents=asia&submit=
I have to extract the date and to print it in this format: yyyy-mm-dd, that is, to get 2020-11-30. Does anyone have any idea? Thanks!