xxxxxxxxxx
import datetime
# Get the current date and time
current_datetime = datetime.datetime.now()
# Convert the datetime to string
current_datetime_string = current_datetime.strftime('%Y-%m-%d %H:%M:%S')
# Print the resulting string
print(current_datetime_string)