title: How to change time format in NetBeans template
body: <p>I have a very specific C++ project, and I use a NetBeans.</p>
  
  <p>Reason for it is because we need to have a specific timestamps, and I found NetBeans templates a great tool for inserting an automatic header with all the relevant stuff.</p>
  
  <p>I manage set everything up nicely, but I can't figure out how to set up the time format in the header template. </p>
  
  <p>Currently it shows this: </p>
  
  <p><code>Created on April 6, 2017, 2:18 PM</code></p>
  
  <p>But since I work in Central Europe, I need a 24h hour format so I could have something like</p>
  
  <p><code>Created on 06.04.2017. at 14:18</code></p>
  
  <p>I found on how to change a date format <a href="http://wiki.netbeans.org/FaqTemplateVariables" rel="nofollow noreferrer">here</a>, but it doesn't work for times for some reason. </p>
  
  <p>I even tried with using FreeMaker's template language reference, so I created a variable time that looks like this: </p>
  
  <pre><code>&lt;#assign dateTime = .now&gt;
  &lt;#assign time = dateTime?time&gt;
  
  ${time?iso("Europe/Zagreb")}
  </code></pre>
  
  <p>But it still didn't change anything. </p>
  
  <p>Now my template looks like this: </p>
  
  <pre><code>// -*- C++ -*-
  &lt;#assign licenseFirst = "/*"&gt;
  &lt;#assign licensePrefix = " * "&gt;
  &lt;#assign licenseLast = " */"&gt;
  
  &lt;#assign aDateTime = .now&gt;
  &lt;#assign time = aDateTime?time&gt;
  
  &lt;#include "${project.licensePath}"&gt;
  
  /* 
   * File:   ${NAME}.${EXTENSION}
   * Author: ${user}
   *
   * Created on ${DATE} at ${time?iso("Europe/Zagreb")}
   */
  
  #ifndef ${GUARD_NAME}
  #define ${GUARD_NAME}
  
  
  
  #endif  /* ${GUARD_NAME} */
  </code></pre>
  
  <p>Is this possible to be changed at all, and how? </p>
  
  <p>Any help is appreciated. </p>