<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Filename on The Lone C++ Coder's Blog</title><link>https://www.lonecpluspluscoder.com/tags/filename/</link><description>Recent content in Filename on The Lone C++ Coder's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 31 Mar 2011 13:00:22 +0000</lastBuildDate><atom:link href="https://www.lonecpluspluscoder.com/tags/filename/index.xml" rel="self" type="application/rss+xml"/><item><title>In case you need to generate a file with the date in the filename in Windows</title><link>https://www.lonecpluspluscoder.com/2011/03/31/in-case-you-need-to-generate-a-file-with-the-date-in-the-filename-in-windows/</link><pubDate>Thu, 31 Mar 2011 13:00:22 +0000</pubDate><author>Timo Geusch</author><guid>https://www.lonecpluspluscoder.com/2011/03/31/in-case-you-need-to-generate-a-file-with-the-date-in-the-filename-in-windows/</guid><description>&lt;p&gt;I just had the pleasure to do exactly that in a batch file. Some poking around technet gave me the following:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f0f3f3;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;%date:~-4,4%%date:~4,2%%date:~-7,2%&amp;lt;/pre&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This will create an ISO-style date format out of a date in US locale settings.&lt;/p&gt;</description></item></channel></rss>