Eggins.com
Powershell, .Net, Visual Studio, Team Foundation Server, Windows Communication Foundation

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • Powershell Date Formatting

    There are many date formatting options available to Powershell using the .net format specifiers. I will show some examples below, and you can look to the end of this post to see alla vailable format specifiers. To format a date to long date: "{0:D}" -f [DateTime]"7/14/2007" Produces...
    Posted to Software Development by David on 05-17-2007
    Filed under: Filed under: , ,
  • Powershell Number Formatting

    The number formatting features available to Powershell though the dot net String.Format() function are a lot more exciting than the string formatting mentioned in my last post. I will give some examples here, and you may look at the end of this post for more formatting specifiers. To pad a number with...
    Posted to Software Development by David on 05-17-2007
    Filed under: Filed under: , ,
  • Powershell String Formatting

    Powershell uses the .Net string formatting features in String.Format. The only formatting functionality for a string is the alignment. To left align a string and pad to 40 chars, the following two lines produce the same result: [System.String]::Format("{0,-40}", "MTB rules") "...
    Posted to Software Development by David on 05-17-2007
    Filed under: Filed under: , ,
Page 1 of 1 (3 items)
Copyright eggins.com, 1998 - 2008
Powered by Community Server (Non-Commercial Edition), by Telligent Systems