California Assembly member Phil Ting, a Democrat out of San Francisco, has introduced a bill to ban the sale of fossil-fueled vehicles in California from 2040.
If adopted, the Clean Cars 2040 bill would require all new passenger vehicle registrations to be zero-emissions, and would take effect on January 1, 2040. It doesn't apply to commercial vehicles over 10,000 lbs, and it doesn't ban existing combustion cars or prevent people from moving into California and registering their pre-owned combustion car with California plates.
The move brings California, if not the rest of the United States, into line with plans several other regions are making. India, China and the EU, among other players, are looking to ban new combustion engine sales for passenger vehicles around 2030 to 2040, and the UK is following this up with a plan to get all existing fossil burning cars off the road by 2050.
These plans represent an enormous challenge to the automotive industry, and rely on some pretty significant technology and infrastructure progress. So the lead times are long, and allow plenty of years for gasoline enthusiasts to enjoy their remaining fossil-burning years.
Source: Clean Cars 2040
I think what the legislators in all countries are trying to do is show the population in general that they have a plan to reduce emissions - they'll know full well that market forces will sort it all out for them way sooner than their legislation kicks in.
Besides my comments to Derek Howe and Tommo, another point is that the same ones pushing for such bans are also the same types that want no fossil fuel power plants, or nuclear, and are against hydroelectric because they mess up the environment for fish and other water dwelling life. They don't like wind energy because the spinning blades kill birds, and solar power is limited in scope (a given panel, produces less energy in the North, then it would if it were closer to the Equator, for example ) so what is the viable, approved power source they plan to use to power charging stations for EV's