In a database, the date is stored like this: 14 May 2020 22:25
I was wondering, when reading this line from database, and change the output to this: 14-5-2020
, is it possible to convert this easily? because sometimes i want to output 14 May 2020 22:25
and sometimes i want to output 14-5-2020
. And if is possible, i only want to store 1 format in the database