I want to convert the datetime format from DD-MM-YYYY HH:MM to DD/MM/YYYY HH:MM in bash. The input is taken from an environment variable $INPUT_DATETIME and the output is set to $OUTPUT_DATETIME.
For ex,
$ export INPUT_DATETIME="01-10-2021 00:05"
$ echo $OUTPUT_DATETIME
01/10/2021 00:05