<!-- SC_OFF --><div class="md"><p>How can I create a snippet that can give me the date in YY-MM-DD-HH-MM, instead of YYYY-MM-DD-HH-MM ? Currently I&#39;m using the line format-time-string &quot;%Y-%m-%d-%H-%M and it&#39;s giving me the four digit YYYY instead of the two digit YY</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/manylights"> /u/manylights </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/q754kk/shortening_the_date_so_its_only_the_last_two/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/q754kk/shortening_the_date_so_its_only_the_last_two/">[comments]</a></span>