Cannabinoids can be detected in the urine for several days to weeks after use, depending on various factors such as the amount and frequency of use, metabolism, and body fat.