In OS X, you can go to Apple menu->System Preferences->Date & Time->Clock and uncheck "Show date and time in menu bar". To bring it back, just check that option.
[System Preferences has a lot to offer for many things, including custom keyboard shortcuts and such]
On macOS, you can hold the command key and drag the clock off the menu bar.