Converts [datetime] to the time format used in condition queries.
ConvertTo-CWMTime [[-Date] <DateTime>] [-Raw] [<CommonParameters>]
This will convert an input to a universal date time object then output in a format used by the ConnectWise Manage API.
Date used in conversion.
Required false
Position 1
Default value
Accept pipeline input true (ByValue)
Accept wildcard characters false
Required false
Position named
Default value False
Accept pipeline input false
Accept wildcard characters false
PS C:\>ConvertTo-CWMTime $(Get-Date).AddDays(1)
Will output tomorrows date.
Author: Chris Taylor
Date: 10/16/2018