PHP Code:
sprintf("%02d"$year);