Note: The date format depends on your locale settings, and mine is set as yyyy-MM-dd. If your locale settings is set such that it’s dd-MM-yyyy, it should automatically display the same way as what you showed as output. If it does not, and you really want to force the display to be dd-MM-yyyy, and you are struggling with this, let me know and I can add that part too.