Can I use the date in the release number

I’d like to version my releases using the current date - 2020.10.16 for example. How can I do this with Octopus?

You can do this by changing the Release Versioning template under the project settings.

You can use the template #{Octopus.Date.Year}.#{Octopus.Date.Month}.#{Octopus.Date.Day}.i to base the version on the current date.

The .i on the end is important if you do multiple releases on any given day. It will add an auto-incrementing number to the end of the version that resets each day.

See our documentation for more details.