<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Use PowerShell to Get the Number of the Week of the Year</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/07/08/use-powershell-to-get-the-number-of-the-week-of-the-year.aspx</link><description>Summary : Learn how to use Windows PowerShell to easily get the number of the week of the year.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell to Get the Number of the Week of the Year</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/07/08/use-powershell-to-get-the-number-of-the-week-of-the-year.aspx#3440503</link><pubDate>Sat, 09 Jul 2011 12:12:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3440503</guid><dc:creator>Klaus Schulte</dc:creator><description>&lt;p&gt;Hello Ed,&lt;/p&gt;
&lt;p&gt;this is great! Besides the calculation of the week number, it shows how to extend object in Powershell&lt;/p&gt;
&lt;p&gt;what look a bit like deriving sub classes from base classes. One of the major aspects of modern&lt;/p&gt;
&lt;p&gt;programming languages! Adding to objects is not the same as deriving from classes, of course. But&lt;/p&gt;
&lt;p&gt;at least we don&amp;#39;t need to build new objects from scratch if we can add functionality to existing&lt;/p&gt;
&lt;p&gt;objects.&lt;/p&gt;
&lt;p&gt;That&amp;#39; really good news and well explained in this article!&lt;/p&gt;
&lt;p&gt;Klaus&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3440503" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Get the Number of the Week of the Year</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/07/08/use-powershell-to-get-the-number-of-the-week-of-the-year.aspx#3440451</link><pubDate>Fri, 08 Jul 2011 20:42:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3440451</guid><dc:creator>jrv</dc:creator><description>&lt;p&gt;Ed - &lt;/p&gt;
&lt;p&gt;In the interest of a greener planet we are havng a save pixels week.&lt;/p&gt;
&lt;p&gt;function Get-ExtendedDate {add-member -MemberType scriptmethod -name GetWeekOfYear -value {get-date -uformat %V}}&lt;/p&gt;
&lt;p&gt;Gave a great weekend and thanks for a bunch of excellent blogs.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3440451" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Get the Number of the Week of the Year</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/07/08/use-powershell-to-get-the-number-of-the-week-of-the-year.aspx#3440449</link><pubDate>Fri, 08 Jul 2011 20:37:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3440449</guid><dc:creator>jjwillemen</dc:creator><description>&lt;p&gt;sorry Mr Ed,&lt;/p&gt;
&lt;p&gt;I am afraid that -uformat %V is wrong for the most of us outside US and Japan and maybe another country with gallons and miles :-) .&lt;/p&gt;
&lt;p&gt;the msdn pages on Calendar.GetWeekOfYear Method indicate dotnet 3.5 is wrong (buggy) and does not comply to ISO standards.&lt;/p&gt;
&lt;p&gt;Dotnet 4.0 seems better if I understand well. But until then...we&amp;#39;ll have to calculate.&lt;/p&gt;
&lt;p&gt;Keep up the good work.&lt;/p&gt;
&lt;p&gt;Jacques &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3440449" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Get the Number of the Week of the Year</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/07/08/use-powershell-to-get-the-number-of-the-week-of-the-year.aspx#3440444</link><pubDate>Fri, 08 Jul 2011 20:17:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3440444</guid><dc:creator>Skolvikings</dc:creator><description>&lt;p&gt;Why are you making everything into a function lately? I mean, I understand the value of functions, but this seems better suited to a simple script. All the work you did to add members to the script, etc., seem like overkill. I&amp;#39;m sure you&amp;#39;re trying to reinforce certain things, but sometimes it seems way over the top. What am I missing?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3440444" width="1" height="1"&gt;</description></item></channel></rss>