You may find lesser-known insurers advertising one-day or weekly car insurance, but be wary, as they could be a scam or offers for insufficient coverage. In contrast, major auto insurance companies typically sell six-month or yearly policies.
Luckily, it's easy to sign up for a standard auto insurance policy and only use it temporarily. For example, you can enroll in a six-month policy and cancel it after a couple of months when you're done driving. You won't be charged for the remaining months after you cancel, though you may pay a cancellation fee.