Original: KaczyÅ ski served as Mayor of Warsaw from 2002 until 22 December 2005, the day before his presidential inauguration.
Simplified: KaczyÅ ski served as Mayor of Warsaw from 2002, until the day before he became president.