<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Windows Batch File (.bat) to get current date in MMDDYYYY format.</title>
	<atom:link href="http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sat, 21 Nov 2009 16:14:40 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris Hackett</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-15466</link>
		<dc:creator>Chris Hackett</dc:creator>
		<pubDate>Tue, 06 Oct 2009 14:27:35 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-15466</guid>
		<description>Thanks, this is exactly what I was looking for!</description>
		<content:encoded><![CDATA[<p>Thanks, this is exactly what I was looking for!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: girija</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-14877</link>
		<dc:creator>girija</dc:creator>
		<pubDate>Tue, 08 Sep 2009 11:35:13 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14877</guid>
		<description>THANKS I GOT MY SOLUTION FROM THIS SITE, THANKS RYAN</description>
		<content:encoded><![CDATA[<p>THANKS I GOT MY SOLUTION FROM THIS SITE, THANKS RYAN</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Thomas</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-14657</link>
		<dc:creator>David Thomas</dc:creator>
		<pubDate>Sun, 30 Aug 2009 05:02:06 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14657</guid>
		<description>one liner (YYYYMMDD): %date:~10,4%%date:~4,2%%date:~7,2%&lt;br&gt;output: 20090830</description>
		<content:encoded><![CDATA[<p>one liner (YYYYMMDD): %date:~10,4%%date:~4,2%%date:~7,2%<br />output: 20090830</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foAudits</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-14612</link>
		<dc:creator>foAudits</dc:creator>
		<pubDate>Fri, 28 Aug 2009 12:41:15 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14612</guid>
		<description>Thank you seamonkey420,&lt;br&gt;&lt;br&gt;This is just what I was looking for.&lt;br&gt;&lt;br&gt;~Bill</description>
		<content:encoded><![CDATA[<p>Thank you seamonkey420,</p>
<p>This is just what I was looking for.</p>
<p>~Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ASh</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-14550</link>
		<dc:creator>ASh</dc:creator>
		<pubDate>Wed, 26 Aug 2009 13:30:30 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14550</guid>
		<description>how can I create a file.txt containing the name of a file with the date of yesterday?&lt;br&gt;&lt;br&gt;for example:&lt;br&gt;&lt;br&gt;I have to create a file named:&lt;br&gt;script_ftp.txt -&gt; within this file must be:&lt;br&gt;&lt;br&gt;get TCFILE720/TCCFASIE.F(dated yesterday) S:  files  TCCFASIE.F(dated yesterday)&lt;br&gt;&lt;br&gt;how can I create a file.txt containing the name of a file with the date of yesterday?&lt;br&gt;&lt;br&gt;for example:&lt;br&gt;&lt;br&gt;I have to create a file named:&lt;br&gt;script_ftp.txt -&gt; within this file must be:&lt;br&gt;&lt;br&gt;get TCFILE720/TCCFASIE.F20090825 S:  files  TCCFASIE.F20090825.dat</description>
		<content:encoded><![CDATA[<p>how can I create a file.txt containing the name of a file with the date of yesterday?</p>
<p>for example:</p>
<p>I have to create a file named:<br />script_ftp.txt -&gt; within this file must be:</p>
<p>get TCFILE720/TCCFASIE.F(dated yesterday) S:  files  TCCFASIE.F(dated yesterday)</p>
<p>how can I create a file.txt containing the name of a file with the date of yesterday?</p>
<p>for example:</p>
<p>I have to create a file named:<br />script_ftp.txt -&gt; within this file must be:</p>
<p>get TCFILE720/TCCFASIE.F20090825 S:  files  TCCFASIE.F20090825.dat</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahopici</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-14504</link>
		<dc:creator>ahopici</dc:creator>
		<pubDate>Mon, 24 Aug 2009 17:16:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14504</guid>
		<description>The solution using VB script is awesome. &lt;br&gt;Eventually, extracting date is independent of regional setting on each particular computer. &lt;br&gt;&lt;br&gt;Thank you, marcwentink.</description>
		<content:encoded><![CDATA[<p>The solution using VB script is awesome. <br />Eventually, extracting date is independent of regional setting on each particular computer. </p>
<p>Thank you, marcwentink.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashmo</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-14247</link>
		<dc:creator>ashmo</dc:creator>
		<pubDate>Thu, 13 Aug 2009 15:26:51 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14247</guid>
		<description>I have read though all of these posts and still can&#039;t seem to figure out how to make a directory (folder) with the current date in the following format 09_08_13 (yy_mm_dd). Can anyone help me with this?</description>
		<content:encoded><![CDATA[<p>I have read though all of these posts and still can&#39;t seem to figure out how to make a directory (folder) with the current date in the following format 09_08_13 (yy_mm_dd). Can anyone help me with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcwentink</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-14070</link>
		<dc:creator>marcwentink</dc:creator>
		<pubDate>Fri, 07 Aug 2009 06:48:17 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14070</guid>
		<description>May this is usefull, especially since it is an example how to get all kinds of everything INDEPENDENT of the current language locale and date format settings using the Windows Scripting Host &lt;br&gt;&lt;br&gt;  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::&lt;br&gt;  ::&lt;br&gt;  :: This uses Windows Scripting Host to set variables&lt;br&gt;  :: to the current date/time/day/day_number&lt;br&gt;  :: for Win9x/ME/NT/W2K/XP etc&lt;br&gt;  :: Thanks go to Todd Vargo for his scripting&lt;br&gt;  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::&lt;br&gt;  @echo off&lt;br&gt;  set TmpFile=&quot;%temp%.tmp.vbs&quot;&lt;br&gt;  echo&gt; %TmpFile% n=Now&lt;br&gt;  echo&gt;&gt;%TmpFile% With WScript&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set year=&quot; + CStr(Year(n))&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set yr=&quot;   + Right(Year(n),2)&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set month=&quot;+ Right(100+Month(n),2)&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set day=&quot;  + Right(100+Day(n),2)&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set hour=&quot; + Right(100+Hour(n),2)&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set min=&quot;  + Right(100+Minute(n),2)&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set sec=&quot;  + Right(100+Second(n),2)&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set dow=&quot;  + WeekDayName(Weekday(n),1)&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set dow2=&quot; + WeekDayName(Weekday(n))&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set iso=&quot;  + CStr(1 + Int(n-2) mod 7)&lt;br&gt;  echo&gt;&gt;%TmpFile% .Echo &quot;set iso2=&quot; + CStr(Weekday(n,2))&lt;br&gt;  echo&gt;&gt;%TmpFile% End With&lt;br&gt;  cscript //nologo &quot;%temp%.tmp.vbs&quot; &gt; &quot;%temp%.tmp.bat&quot;&lt;br&gt;  call &quot;%temp%.tmp.bat&quot;&lt;br&gt;  del  &quot;%temp%.tmp.bat&quot;&lt;br&gt;  del  %TmpFile%&lt;br&gt;  set TmpFile=&lt;br&gt;  set stamp=%year%-%month%-%day%_%hour%.%min%.%sec%&lt;br&gt;&lt;br&gt;  echo The year (YYyy) is &quot;%year%&quot;&lt;br&gt;  echo The year   (yy) is   &quot;%yr%&quot;&lt;br&gt;  echo The month       is   &quot;%month%&quot;&lt;br&gt;  echo The day   (%dow%) is   &quot;%day%&quot;&lt;br&gt;  echo The full weekday name is &quot;%dow2%&quot;&lt;br&gt;  echo.&lt;br&gt;  echo ISO 8601 Day-Of-Week number is &quot;%iso%&quot;&lt;br&gt;  echo.&lt;br&gt;  echo The hour   is &quot;%hour%&quot;&lt;br&gt;  echo The minute is &quot;%min%&quot;&lt;br&gt;  echo The second is &quot;%sec%&quot;&lt;br&gt;  echo.&lt;br&gt;&lt;br&gt;  echo The date and time stamp is &quot;%stamp%&quot;&lt;br&gt;  echo.&lt;br&gt;  echo time   (hhmmss)   (%hour%%min%%sec%)&lt;br&gt;  echo.&lt;br&gt;  echo date A (yyyymmdd) (%year%%month%%day%)&lt;br&gt;  echo date B (mmddyyyy) (%month%%day%%year%)&lt;br&gt;  echo date C (ddmmyyyy) (%day%%month%%year%)&lt;br&gt;  echo.&lt;br&gt;  echo date D [yymmdd]   [%yr%%month%%day%]&lt;br&gt;  echo date E [mmddyy]   [%month%%day%%yr%]&lt;br&gt;  echo date F [ddmmyy]   [%day%%month%%yr%]&lt;br&gt;  :: datetime.bat&lt;br&gt;  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::</description>
		<content:encoded><![CDATA[<p>May this is usefull, especially since it is an example how to get all kinds of everything INDEPENDENT of the current language locale and date format settings using the Windows Scripting Host </p>
<p>  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::<br />  ::<br />  :: This uses Windows Scripting Host to set variables<br />  :: to the current date/time/day/day_number<br />  :: for Win9x/ME/NT/W2K/XP etc<br />  :: Thanks go to Todd Vargo for his scripting<br />  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::<br />  @echo off<br />  set TmpFile=&#8221;%temp%.tmp.vbs&#8221;<br />  echo&gt; %TmpFile% n=Now<br />  echo&gt;&gt;%TmpFile% With WScript<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set year=&#8221; + CStr(Year(n))<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set yr=&#8221;   + Right(Year(n),2)<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set month=&#8221;+ Right(100+Month(n),2)<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set day=&#8221;  + Right(100+Day(n),2)<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set hour=&#8221; + Right(100+Hour(n),2)<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set min=&#8221;  + Right(100+Minute(n),2)<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set sec=&#8221;  + Right(100+Second(n),2)<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set dow=&#8221;  + WeekDayName(Weekday(n),1)<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set dow2=&#8221; + WeekDayName(Weekday(n))<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set iso=&#8221;  + CStr(1 + Int(n-2) mod 7)<br />  echo&gt;&gt;%TmpFile% .Echo &#8220;set iso2=&#8221; + CStr(Weekday(n,2))<br />  echo&gt;&gt;%TmpFile% End With<br />  cscript //nologo &#8220;%temp%.tmp.vbs&#8221; &gt; &#8220;%temp%.tmp.bat&#8221;<br />  call &#8220;%temp%.tmp.bat&#8221;<br />  del  &#8220;%temp%.tmp.bat&#8221;<br />  del  %TmpFile%<br />  set TmpFile=<br />  set stamp=%year%-%month%-%day%_%hour%.%min%.%sec%</p>
<p>  echo The year (YYyy) is &#8220;%year%&#8221;<br />  echo The year   (yy) is   &#8220;%yr%&#8221;<br />  echo The month       is   &#8220;%month%&#8221;<br />  echo The day   (%dow%) is   &#8220;%day%&#8221;<br />  echo The full weekday name is &#8220;%dow2%&#8221;<br />  echo.<br />  echo ISO 8601 Day-Of-Week number is &#8220;%iso%&#8221;<br />  echo.<br />  echo The hour   is &#8220;%hour%&#8221;<br />  echo The minute is &#8220;%min%&#8221;<br />  echo The second is &#8220;%sec%&#8221;<br />  echo.</p>
<p>  echo The date and time stamp is &#8220;%stamp%&#8221;<br />  echo.<br />  echo time   (hhmmss)   (%hour%%min%%sec%)<br />  echo.<br />  echo date A (yyyymmdd) (%year%%month%%day%)<br />  echo date B (mmddyyyy) (%month%%day%%year%)<br />  echo date C (ddmmyyyy) (%day%%month%%year%)<br />  echo.<br />  echo date D [yymmdd]   [%yr%%month%%day%]<br />  echo date E [mmddyy]   [%month%%day%%yr%]<br />  echo date F [ddmmyy]   [%day%%month%%yr%]<br />  :: datetime.bat<br />  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcwentink</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-14042</link>
		<dc:creator>marcwentink</dc:creator>
		<pubDate>Thu, 06 Aug 2009 07:29:49 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-14042</guid>
		<description>Thanks Trent that is what I want: getting day month and year INDEPENDANT of the format used. I am going to study this.</description>
		<content:encoded><![CDATA[<p>Thanks Trent that is what I want: getting day month and year INDEPENDANT of the format used. I am going to study this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Personick</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-13396</link>
		<dc:creator>Ben Personick</dc:creator>
		<pubDate>Fri, 10 Jul 2009 18:05:11 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13396</guid>
		<description>Erms, that IS pretty old school, try:&lt;br&gt;&lt;br&gt;Set TDate=%date:~10,4%%date:~4,2%%date:~7,2% &lt;br&gt;&lt;br&gt;&lt;br&gt;1 line = better&lt;br&gt;&lt;br&gt; =D&lt;br&gt;&lt;br&gt;PS.  Also it&#039;s bad form to use a variable with the same name as a command, so, don&#039;t do that. =P&lt;br&gt;&lt;br&gt;&lt;br&gt;Peace,&lt;br&gt;&lt;br&gt;-B</description>
		<content:encoded><![CDATA[<p>Erms, that IS pretty old school, try:</p>
<p>Set TDate=%date:~10,4%%date:~4,2%%date:~7,2% </p>
<p>1 line = better</p>
<p> =D</p>
<p>PS.  Also it&#39;s bad form to use a variable with the same name as a command, so, don&#39;t do that. =P</p>
<p>Peace,</p>
<p>-B</p>
]]></content:encoded>
	</item>
</channel>
</rss>
