<p>I need to get the current date in Helm with the following format YY-MM-DD. I'm trying <code>{{ now | date }}</code> but this returns an error because the number of arguments expected by date is two, not one.</p>

<p>Try Format the date to YEAR-MONTH-DAY:</p>
<pre><code>{{ now | date &quot;20060102150405&quot; }}
</code></pre>
<p>Source <a href="http://masterminds.github.io/sprig/date.html" rel="nofollow noreferrer">here</a>:</p>
<p>or add the following annotation :</p>
<pre><code>annotations:
   deploymentTime: {{ now | date &quot;2006-01-02T15:04:05&quot; }}
</code></pre>
