You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Name

Get-JS7CalendarDates

SYNOPSIS

Returns dates from a calendar with the JOC Cockpit inventory

SYNTAX

Get-JS7CalendarDates [-CalendarPath] <String> [[-DateFrom] <DateTime>] [[-DateTo] <DateTime>] [<CommonParameters>]

DESCRIPTION

Return the list of dates that are included with a calendar.

Past and future dates can be retrieved.

PARAMETERS

CalendarPath

-CalendarPath <String>
Optionally specifies the path and name of a calendar that should be returned.

One of the parameters -Folder, -CalendarPath or -RegularExpression has to be specified if no pipelined order objects are provided.

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

DateFrom

-DateFrom <DateTime>
Specifies the date starting from which calendar dates should be returned.
Consider that a UTC date has to be provided.

Default: Begin of the current day as a UTC date

Required?false
Position?2
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

DateTo

-DateTo <DateTime>
Specifies the date until which calendar dates should be returned.
Consider that a UTC date has to be provided.

Default: End of the calendar's date range or the end of the current year as a UTC date

Required?false
Position?3
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

about_JS7

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

PS > $dates = Get-JS7CalendarDates -CalendarPath /BusinessDays

Returns the dates specified by the indicated calendar that is stored with the path "/BusinessDays".

-------------------------- EXAMPLE 2 --------------------------

PS > $dates = Get-JS7CalendarDates -CalendarPath /BusinessDays -DateTo (Get-Date).AddDays(30)

Returns the calendar dates for the next 30 days.

  • No labels