Change this to only accept `format`.  The dateList variable will come as the parameter to the `convert()` method.