Not the terminal instructions but work anyway.
To put the date and time on the menu bar:
Open System Preferences and go to the "International" system preference pane. Once there, click on the "Formats" tab and then click the customize button in the dates section. Select "Medium" from the drop-down menu. You should see the data change in the text box below the drop-down menu. Click inside the box, select all the text (Command + A), and then copy the text (Command + C). Once you've copied the text, click cancel.
Click on the customize button in the times section. Select "Medium" from the drop-down menu. Then place the cursor just before the time and paste (Command + V) the date that you just copied. You might want to add several spaces (or some sort of separator) between the date and time. Once you are finished, click OK. The changes will now show up in the menu bar.