With switches the cases can’t be variables but instead arguments, hence why it doesn’t work when you put the name of the variable in because it sees it as a string. But it will work when you 19/04/2019 as a string as the case.
https://forum.uipath.com/t/how-to-use-variable-as-the-case-of-switch-activity/119493