<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Date on The Lone C++ Coder's Blog</title><link>https://www.lonecpluspluscoder.com/tags/date/</link><description>Recent content in Date 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/date/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>I just had the pleasure to do exactly that in a batch file. Some poking around technet gave me the following:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f0f3f3;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>%date:~-4,4%%date:~4,2%%date:~-7,2%&amp;lt;/pre&amp;gt;&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
&lt;p>This will create an ISO-style date format out of a date in US locale settings.&lt;/p></description></item></channel></rss>