Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 1.91 KB

ConvertTo-CWMTime.md

File metadata and controls

40 lines (36 loc) · 1.91 KB

ConvertTo-CWMTime

SYNOPSIS

Converts [datetime] to the time format used in condition queries.

SYNTAX

ConvertTo-CWMTime [[-Date] <DateTime>] [-Raw] [<CommonParameters>]

DESCRIPTION

This will convert an input to a universal date time object then output in a format used by the ConnectWise Manage API.

PARAMETERS

-Date <DateTime>

Date used in conversion.

Required                    false
Position                    1
Default value
Accept pipeline input       true (ByValue)
Accept wildcard characters  false

-Raw <SwitchParameter>

Required                    false
Position                    named
Default value                False
Accept pipeline input       false
Accept wildcard characters  false

EXAMPLES

EXAMPLE 1

PS C:\>ConvertTo-CWMTime $(Get-Date).AddDays(1)

Will output tomorrows date.

NOTES

Author: Chris Taylor

Date: 10/16/2018