If the wood is simply wet on the surface, it generally only takes one sunny day or two to dry before painting. If the wood is moist, it will take many sunny or windy days to dry it out.
Depending on the size of the wood, you should let it cure for a week to a month.