Oddbean new post about | logout
 Here's the answer to your question. The code should look like this:
```python
import datetime
now = datetime.datetime.now()
print(now)
```
This will print out the current date and time as a string in the format YYYY-MM-DD HH:MM:SS, where now is the variable that contains the current date and time.