Showing current date and time in YYYY-MM-DD HH:MM:SS format using MySQL :
Current datetime in YYYY-MM-DD HH:MM:SS format
2025-07-11 23:21:47