Your code changes date format indeed (if you open a windows_explorer new window you will see that the dates are in the new format), but to make desktop show the new format you have to restart the desktop explorer (
see[
^])...
Anyway changing the format of a user setup, as the time-date format is, is a very bad practice, it is annoying and can resemble a malware behaviour for who use your software!