You can sell your investments at any time, as long as it is during standard market hours. Once you do, you will then need to withdraw the money out of your stock broker account. The amount of time it takes to receive the cash will depend on the stock broker in question, as well as the type of payment method you used.