With this plugin, you can generate and store complex version numbers that incorporate things like plain text, the build date, the number of builds done this day/week/year, and the time elapsed since the beginning of the project.
For complete configuration information, see the Version Number Plugin wiki page. For more information on any of the fields, click on the help icon next to the field.