Skip to content

Latest commit

 

History

History
118 lines (86 loc) · 2.83 KB

New-CsOnlineDateTimeRange.md

File metadata and controls

118 lines (86 loc) · 2.83 KB
external help file online version applicable title schema manager author ms.author ms.reviewer
Microsoft.Rtc.Management.Hosted.dll-help.xml
Microsoft Teams
New-CsOnlineDateTimeRange
2.0.0
bulenteg
tomkau
tomkau
williamlooney

New-CsOnlineDateTimeRange

SYNOPSIS

Use the New-CsOnlineDateTimeRange cmdlet to create a new date-time range.

SYNTAX

New-CsOnlineDateTimeRange -Start <String> [-End <String>] [-Tenant <Guid>] [<CommonParameters>]

DESCRIPTION

The New-CsOnlineDateTimeRange cmdlet creates a new date-time range to be used with the Organizational Auto Attendant (OAA) service. Date time ranges are used to form schedules.

NOTE:

  • The start bound of the range must be less than its end bound.
  • The time part of the range must be aligned with 30/60-minutes boundaries.
  • A date time range bound can only be input in the following formats:
    • "d/m/yyyy H:mm"
    • "d/m/yyyy" (the time component of the date-time range is set to 00:00)

EXAMPLES

Example 1

$dtr = New-CsOnlineDateTimeRange -Start "1/1/2017"

This example creates a date-time range for spanning from January 1, 2017 12AM to January 2, 2017 12AM.

Example 2

$dtr = New-CsOnlineDateTimeRange -Start "24/12/2017 09:00" -End "27/12/2017 00:00"

This example creates a date-time range spanning from December 24, 2017 9AM to December 27, 2017 12AM.

PARAMETERS

-Start

The Start parameter represents the start bound of the date-time range.

Type: System.String
Parameter Sets: (All)
Aliases: 
applicable: Microsoft Teams

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-End

The End parameter represents the end bound of the date-time range.

If not present, the end bound of the date time range is set to 00:00 of the day after the start date.

Type: System.String
Parameter Sets: (All)
Aliases: 
applicable: Microsoft Teams

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Tenant

Type: System.Guid
Parameter Sets: (All)
Aliases: 
applicable: Microsoft Teams

Required: False
Position: Named
Default value: None
Accept pipeline input: False
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 (https://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None

OUTPUTS

Microsoft.Rtc.Management.Hosted.Online.Models.DateTimeRange

NOTES

RELATED LINKS

New-CsOnlineSchedule