function Get-DateRFC2822() {
[string]$date_string = ([System.DateTime]::Now | Get-Date).ToString("ddd, dd MMM yyyy HH:mm:ss zzz", ([System.Globalization.CultureInfo]::InvariantCulture))
return $date_string
}
[Read More]
New Function: Get-logNameFromDate
#Requires -Version 3.0 function Get-logNameFromDate { <# .SYNOPSIS Generates a log file name for use in other scripts .DESCRIPTION This function simply calculates a file name for the users temp folder using the date and time of the function call A file is not actually created by this function, only...
[Read More]
New Function: Get-DateISO8601
function Get-DateISO8601() {
[string]$date_string = ([System.DateTime]::Now | `
Get-Date -Format yyyy-MM-ddTHH.mm.sszzz).ToString() | `
foreach {$_ -replace ":", "."}
return $date_string
}
[Read More]
PSPowerHour
Slides from PSPowerHour
[Read More]
Links of the day
bye-bye-backtick
[Read More]