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.

Menu