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

Compare with Current View Page History

« Previous Version 27 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>
Specifies the path and name of a calendar that should be returned.

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

DateFrom

-DateFrom <DateTime>
Optionally 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>
Optionally 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.

-------------------------- EXAMPLE 3 --------------------------

PS > $dates = Get-JS7Calendar -WorkingDays | Get-JS7calendarDates

Retursn the dates from any working day calendars available with the inventory.

  • No labels