When I am executing the following code
SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/YYYY");
Date today=new Date();
Date format is wrong. It should be y instead of Y-
For a more detailed insight view, check the link Oracle Docs and you'll see the meaning of each character we pass there.