Your UK visa's validity period depends on its specifics. Before applying, carefully read the rules and stipulations of your desired visa.
Visit the official UK government website website to check which visas you qualify for.