Last updatedDec 8, 2017

# How do I get the information about Confluence such as version number, build number, build date?

Information about Confluence, such as the version number, build number and build date, can be retrieved from the GeneralUtil object.

You can use GeneralUtils public accessors to retrieve public static variables:

• versionNumber
• buildDate
• buildNumber

#### In Java

`1`
``String versionNumber = GeneralUtil.getVersionNumber();``
`1`
``String buildNumber = GeneralUtil.getBuildNumber();``
`1`
``String buildDate = GeneralUtil.getBuildDateString(); ``

or

`1`
``Date buildDate = GeneralUtil.getBuildDate();``

#### In Velocity

```1
2
3```
``````\$generalUtil.versionNumber
\$generalUtil.buildNumber
\$generalUtil.buildDateString``````

For instance, part of the Confluence footer is generated in the footer.vm file:

`1`
``(Version: \$generalUtil.versionNumber Build:#\$generalUtil.buildNumber \$generalUtil.buildDateString)``

#### In Wiki markup

User macros can include the Velocity markup given above. For example, create a user macro called 'version' with no body and the contents:

`1`
``\$generalUtil.versionNumber``

You can use this user macro in a page like this:

`1`
``Congratulation, you're running Confluence version {version}!``