40 years ago on September 1st, 1984
The original 212 area code splits into 212 for Manhattan and 718 for Brooklyn, Queens, and Staten Island
New York's most recent area code is 332, which was assigned to Manhattan in 2017. As of April 2020, NANPA, the organization in charge of assigning area codes, estimates that New York City's available phone numbers will begin to be completely depleted by 2030, although those estimates have been increasing as fewer new numbers have been needed in recent years. With the shift toward mobile phones and the portability of numbers, New York area codes can now travel across the country, bringing along the legacy of having once been assigned to someone living in New York City.
References: