title: how append date build to versionNameSuffix on gradle
body: <p>I am using Android Studio and I need to append a suffix to the <code>versionNameSuffix</code> on my Android <em>build.gradle</em> file. I have three different build types and I only need to append the datetime to my &quot;beta&quot; release. My actual file is:</p>
  <pre class="lang-groovy prettyprint-override"><code>defaultConfig {
      versionCode 14
      versionName &quot;0.7.5&quot;
      minSdkVersion 9
      targetSdkVersion 18
  }
  buildTypes {
      beta {
          packageNameSuffix &quot;.beta&quot;
          versionNameSuffix &quot;-beta&quot;
          signingConfig signingConfigs.debug
      }
      ....
  }
  </code></pre>
  <p>For testing and automatic deploy, I need to get a final versionName like: <code>0.7.5-beta-build20131004</code>, <code>0.7.5-beta-build1380855996</code> or something like that. Any ideas?</p>