# Version data type
> Version: _Available or changed with runtime version 1.0._
Represents a version matching the format: Major.Minor.Build.Revision .
## Static methods
The following methods are available on the Version data type.
Method name|Description
Create(Text)<version-create-string-method>|Creates a version object from the provided string. The string should be in the format W.X.Y.Z, where W, X, Y and Z represent positive integers and where Y and Z are optional. If the input string is not in the expected format, an exception is thrown.
version-create-integer-integer-integer-integer-method|Creates a version object from the major, minor, build and revision numbers provided.
## Instance methods
The following methods are available on instances of the Version data type.
Method name|Description
version-build-method|Gets the build number of the version.
version-major-method|Gets the major number of the version.
version-minor-method|Gets the minor number of the version.
version-revision-method|Gets the revision number from the version.
version-totext-method|Converts the value to a text. Equivalent to calling Format(value, 0, 0).
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/version/version-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/version/version-data-type/
