Well, since the .NET framework is right at your fingertips, you can do
$d1 = [System.DateTime]::Now
And then
$d2 = $d1.AddSeconds(30)
Get-Date is then presented as a wrapper on a DateTime object, and the following will work well:
$d3 = Get-Date 23.10.2010 -Format dd.MM.yyyy
source
share