Talk TechNet ... Episode 23: Hal Rottenberg on Powershell


i'm having trouble figuring out start time will
be hal rottenberg's appearance on webcast described at
 
 
it says
starts: wednesday, april 20, 2011 9:00 am
time zone: (gmt-08:00) pacific time (us & canada)
 
seems ambiguous me.
 
 
 

# should give local time of event

# note offset should gmt -07:00 (daylight savings)

$date = get-date 'april 20, 2011 9:00 am'

$offset = new-timespan -hours -7

$dtoffset = new-object datetimeoffset $date, $offset

$dtoffset.localdatetime


  robert robelo  


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2