How to buy stock at closing price

Can you buy stock at the closing price, and how is that done?