New-CsOnlineDateTimeRange
Use the New-CsOnlineDateTimeRange cmdlet to create a new date-time range.
Syntax
Default (Default)
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
-End
Applicable: Microsoft Teams
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.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Start
Applicable: Microsoft Teams
The Start parameter represents the start bound of the date-time range.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Tenant
Applicable: Microsoft Teams
Parameter properties
Type: | System.Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.