An LED lamp includes a cooling member, a light source, a lamp cover and a pair of lamp caps arranged at opposite ends of the cooling member. The cooling member has an elongated heat absorbing plate forming a heat absorbing surface at one outer side thereof. The light source includes a plurality of LEDs arranged on the heat absorbing surface. The lamp cover covers the LEDs therein and engages with the cooling member. Each lamp cap includes an end cap fixed on the cooling member and a connector rotatably connected with the end cap. The connector includes a pair of poles being electrically connected to the LEDs and extending outwardly therefrom for inserting into a lamp holder to get a power for the LEDs.