<?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>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: minipop4747</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-52634</link>
		<dc:creator>minipop4747</dc:creator>
		<pubDate>Fri, 16 Dec 2011 09:57:22 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-52634</guid>
		<description>I want to get 2 days back days in YYYYMMDDHHMM format to create a batch file(need cmd command).

as an example today is : 201112161200 and i want to get 2 days back date as below 201112141200

ECHO %date:~10,4%%date:~7,2%%date:~4,2%%time:~0,2%%time:~3,2%

Mention command gives the current date in above format 201112161200.

But i need to get 2 days back date from the mention format

if any one knows how to do this please help me</description>
		<content:encoded><![CDATA[<p>I want to get 2 days back days in YYYYMMDDHHMM format to create a batch file(need cmd command).</p>
<p>as an example today is : 201112161200 and i want to get 2 days back date as below 201112141200</p>
<p>ECHO %date:~10,4%%date:~7,2%%date:~4,2%%time:~0,2%%time:~3,2%</p>
<p>Mention command gives the current date in above format 201112161200.</p>
<p>But i need to get 2 days back date from the mention format</p>
<p>if any one knows how to do this please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jymurthy</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-52384</link>
		<dc:creator>jymurthy</dc:creator>
		<pubDate>Wed, 07 Dec 2011 12:34:51 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-52384</guid>
		<description>How can I print previous day&#039;s date</description>
		<content:encoded><![CDATA[<p>How can I print previous day&#8217;s date</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Idris_tas</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-33235</link>
		<dc:creator>Idris_tas</dc:creator>
		<pubDate>Fri, 24 Jun 2011 19:10:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-33235</guid>
		<description>thanks</description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venkat Lvr</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-47716</link>
		<dc:creator>Venkat Lvr</dc:creator>
		<pubDate>Mon, 04 Apr 2011 12:19:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47716</guid>
		<description>can you please send the complete code which will execute in xp to show date format from dd-mm-yyy to dd-mmm-yyyy respectively to my mail id &quot; venkat.lvr@gmail.com&quot; 
Eg: 01-04-2011 to 01-Apr-2011.</description>
		<content:encoded><![CDATA[<p>can you please send the complete code which will execute in xp to show date format from dd-mm-yyy to dd-mmm-yyyy respectively to my mail id &#8221; <a href="mailto:venkat.lvr@gmail.com">venkat.lvr@gmail.com</a>&#8221;<br />
Eg: 01-04-2011 to 01-Apr-2011.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Jung</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-47377</link>
		<dc:creator>Stephen Jung</dc:creator>
		<pubDate>Tue, 22 Mar 2011 23:23:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47377</guid>
		<description>Can you also get the quarter?</description>
		<content:encoded><![CDATA[<p>Can you also get the quarter?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AMan</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-47218</link>
		<dc:creator>AMan</dc:creator>
		<pubDate>Wed, 16 Mar 2011 17:49:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47218</guid>
		<description>Perfect, exactly what I was looking for!</description>
		<content:encoded><![CDATA[<p>Perfect, exactly what I was looking for!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kouliscon</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-47216</link>
		<dc:creator>Kouliscon</dc:creator>
		<pubDate>Wed, 16 Mar 2011 15:16:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47216</guid>
		<description>Hello all, 
i am usign with GPO a batch file at logon and logoff of the computers which copies a specific location to a network location for backup reasons. 
The data has become big and i need to add to the batch file ONLY the files which were CREATED the last 90 days. 
anybody can help? 
the batch file command is: 
c: 
c:users%username%DATA 
xcopy *.* /s /r /e /d /h /y /exclude:\192.168.1.10nonbackupfiles.txt \192.168.1.10%username% 
thx in advance

 

</description>
		<content:encoded><![CDATA[<p>Hello all,<br />
i am usign with GPO a batch file at logon and logoff of the computers which copies a specific location to a network location for backup reasons.<br />
The data has become big and i need to add to the batch file ONLY the files which were CREATED the last 90 days.<br />
anybody can help?<br />
the batch file command is:<br />
c:<br />
c:users%username%DATA<br />
xcopy *.* /s /r /e /d /h /y /exclude:\192.168.1.10nonbackupfiles.txt \192.168.1.10%username%<br />
thx in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dv400b</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-47199</link>
		<dc:creator>Dv400b</dc:creator>
		<pubDate>Tue, 15 Mar 2011 19:21:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47199</guid>
		<description>Sounds like your date format is in &quot;Day Month/Date/Year&quot; format, in which case you want

%date:~-4,4%%date:~-10,2%%date:~-7,2%</description>
		<content:encoded><![CDATA[<p>Sounds like your date format is in &#8220;Day Month/Date/Year&#8221; format, in which case you want</p>
<p>%date:~-4,4%%date:~-10,2%%date:~-7,2%</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frankyke</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-47154</link>
		<dc:creator>Frankyke</dc:creator>
		<pubDate>Mon, 14 Mar 2011 09:41:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-47154</guid>
		<description>Hi all, how to take out the &quot;0&quot; in month? 

Example:
The date is 11/02/2011. If it is 02, I may just want single digit &quot;2&quot; instead of &quot;02&quot;. If it is 12 then may keep both digits &quot;12&quot;. 

thanks all. </description>
		<content:encoded><![CDATA[<p>Hi all, how to take out the &#8220;0&#8243; in month? </p>
<p>Example:<br />
The date is 11/02/2011. If it is 02, I may just want single digit &#8220;2&#8243; instead of &#8220;02&#8243;. If it is 12 then may keep both digits &#8220;12&#8243;. </p>
<p>thanks all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Mandis</title>
		<link>http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/comment-page-1/#comment-46975</link>
		<dc:creator>Mihai Mandis</dc:creator>
		<pubDate>Tue, 08 Mar 2011 10:11:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-46975</guid>
		<description>There&#039;re diferent data format given by &quot;echo %date%_%time%&quot; command. 
1. 03/08/2011_12:05:31.12
2. Thu 03/03/2011_07:38 PM
3. 2011-03-08_12:05:31.12
It might be quite difficult to get the date and time by parsing a string given by &quot;echo %date%_%time%&quot; command.
I&#039;ve choosen to use &quot;realdate.com&quot; executable to get data and time: http://www.huweb.hu/maques/realdate.htm</description>
		<content:encoded><![CDATA[<p>There&#8217;re diferent data format given by &#8220;echo %date%_%time%&#8221; command.<br />
1. 03/08/2011_12:05:31.12<br />
2. Thu 03/03/2011_07:38 PM<br />
3. 2011-03-08_12:05:31.12<br />
It might be quite difficult to get the date and time by parsing a string given by &#8220;echo %date%_%time%&#8221; command.<br />
I&#8217;ve choosen to use &#8220;realdate.com&#8221; executable to get data and time: <a href="http://www.huweb.hu/maques/realdate.htm" rel="nofollow">http://www.huweb.hu/maques/realdate.htm</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/17 queries in 1.181 seconds using memcached
Object Caching 416/419 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 11:42:13 -->
