ConvertFrom-UTCTime
SYNOPSIS
Convert a datetime value from universal.
SYNTAX
ConvertFrom-UTCTime [-DateTime] <DateTime> [<CommonParameters>]
DESCRIPTION
Use this command to convert a universal datetime object into local time.
This command was introduced in v2.3.0.
EXAMPLES
Example 1
PS C:\> ConvertFrom-UTCTime "18:00"
Monday, March 4, 2020 1:00:00 PM
Covert the time 18:00 for the current day from universal time to local time. This result reflects Eastern Time which on this date is UTC-5.
PARAMETERS
-DateTime
Enter a Universal Datetime value
Type: System.DateTime
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.DateTime
OUTPUTS
System.DateTime
NOTES
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/