How does the shell script convert the two time formats?

the existing format is as follows:
Mon Mar 26 17:43:17 2018
this format is required:
2018-02-21 00:00:00

is there any way to convert it?

Feb.26,2021

date-d today + "Y d m H:%M:%S"
specific query date-- help.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be9072-31952.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be9072-31952.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?