How to know platform version in the code?

Hi,
I’m using platformio with espressif32 platform.
In the platformio.ini I have this:

platform = espressif32@6.2.0

I force to use the latest 6.2.0 release.

My question is: there is a way to have this release version in the code, in order to print it in my serial log? For example now I’m printing DATE and TIME that gives me date and time of the compilation of the build. I want to add also the version of the platform.
There is a function or a variable that you know?

Thanks

Yes,