The shooting happened about 9 p.m. near 108th Street and Van Ness Avenue.
The victims, who were only identified as males, drove themselves to a nearby fire station. They were then taken to a hospital, where they were expected to survive.
No suspects were immediately identified and the motive was unknown