# How to adjust build date with maven build module

**URL:** <https://forum.inductiveautomation.com/t/how-to-adjust-build-date-with-maven-build-module/11614>\
**Category:** Module Development\
**Created:** [May 4, 2016, 1:20pm UTC](https://forum.inductiveautomation.com/t/how-to-adjust-build-date-with-maven-build-module/11614 "2016-05-04T13:20:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [May 4, 2016, 1:20pm UTC](https://forum.inductiveautomation.com/t/how-to-adjust-build-date-with-maven-build-module/11614/1 "2016-05-04T13:20:00Z")

</div>

In the build pom, with  
1.0.0

the module gateway page mention :  
1.0.0 (b0)

How to set the build date like IA module :  
1.0.0 (b2016030813)

1.0.0 ${maven.build.timestamp}  
don’t work.

![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 4, 2016, 8:19pm UTC](https://forum.inductiveautomation.com/t/how-to-adjust-build-date-with-maven-build-module/11614/2 "2016-05-04T20:19:09Z")

</div>

The gateway simply extracts the fourth element of your version number and formats it as “b(nnnnnnnn)”. In your final .modl file, you should end up with:`<version>1.0.0.12345678</version>`Note that each element of a version must fit within a 32-bit integer, so you can’t just go wild. I format the build date as “YYMMDDHHmm”, which will work for the next several years.  
I haven’t switched to maven yet, so you’ll have to work out how to format and insert the build date in your pom.xml.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [May 5, 2016, 4:25pm UTC](https://forum.inductiveautomation.com/t/how-to-adjust-build-date-with-maven-build-module/11614/3 "2016-05-05T16:25:56Z")

</div>

Adding this code into the pom do the job !

```auto

<properties>
  <timestamp>${maven.build.timestamp}</timestamp>
  <maven.build.timestamp.format>yyyyMMddHH</maven.build.timestamp.format>
</properties>

<moduleVersion>1.0.0.${timestamp}</moduleVersion>

```
