In what year was New York City divided into its boroughs?

In what year was New York City divided into its boroughs?
Twitter Google+ Share on Facebook