Well, the first real university was the University of Bologna, founded in 1088. So I'm guessing somewhere around 1088.
http://en.wikipedia.org/wiki/List_of_oldest_madrasahs_in_con...
No one was allowed to practice medicine unless they passed an exit exam, also first university to take attendance.