http://drupal.org/project/formupdater

Paste your Drupal 4.6 or older form code into the textarea, click Process code, and it will strip the relevant form code out and display the new Form API version.