A dog can be crated for up to 8 hours. You should not leave your dog in a crate for longer than 8 hours because if you do your dog could suffer mentally.
Crating a dog longer than 8 hours can also compromise your dogs physical well being as well.
Be sure your dog gets 30 to 60 minutes of exercise before crating the dog for 8 hours.