0 out of 464 challenges solved
Write a Python function `change_date_format` that takes a string representing a date in the format `yyyy-mm-dd` and converts it to the format `dd-mm-yyyy`.
#### Example Usage
```python [main.nopy]
print(change_date_format("2026-01-02")) # Output: "02-01-2026"
print(change_date_format("2020-11-13")) # Output: "13-11-2020"
print(change_date_format("2021-04-26")) # Output: "26-04-2021"
```
#### Constraints
- The input string will always be in the format `yyyy-mm-dd`.
- The function should return the reformatted date as a string.def change_date_format(dt):
"""
Convert a date from yyyy-mm-dd format to dd-mm-yyyy format.
Args:
dt (str): A date string in the format yyyy-mm-dd.
Returns:
str: The date string in the format dd-mm-yyyy.
"""
# Write your code here
pass