Skip to content

Latest commit

 

History

History
98 lines (58 loc) · 1.69 KB

ConvertTo-WmiDateTime.md

File metadata and controls

98 lines (58 loc) · 1.69 KB
external help file Module Name online version schema
PSDates-help.xml
PSDates
2.0.0

ConvertTo-WmiDateTime

SYNOPSIS

Converts a datetime value to a Wmi datetime string

SYNTAX

__AllParameterSets

ConvertTo-WmiDateTime [[-Date <DateTime>]] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

This function will return the WMI datetime string based on a datetime passed.

EXAMPLES

Example 1: EXAMPLE 1

ConvertTo-WmiDateTime -Date '06/25/2019 16:17'

Return the WMI datetime string for the datetime of "06/25/2019 16:17"

PARAMETERS

-Date

Specifies a date and time.

Type: DateTime
Parameter Sets: (All)
Aliases: 
Accepted values: 

Required: True (None) False (All)
Position: 0
Default value: (Get-Date)
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Accepted values: 

Required: True (None) False (All)
Position: Named
Default value: 
Accept pipeline input: False
Accept wildcard characters: False
DontShow: 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.

OUTPUTS

The string value based on the datetime

NOTES

RELATED LINKS

Fill Related Links Here