New-ConsoleCalendar
Creates a month or year calendar with dated operational outcomes.
Syntax
New-ConsoleCalendar
[-Culture <CultureInfo>]
[-DateProperty <String>]
[-FirstDayOfWeek <DayOfWeek>]
[-InputObject <PSObject[]>]
[-LabelProperty <String>]
[-Month <Int32>]
[-NoLegend]
[-StatusProperty <String>]
[-Today <DateTime>]
[-View <Month| Year>]
-Year <Int32>
[<CommonParameters>]#All Parameter SetsDescription
Returns a passive widget. Pipeline rows provide Date, Status and Label properties, with explicit property overrides. Duplicate dates retain every row; the displayed status uses Fail, Warn, Running, Pending, Pass, Info, Skip precedence. Dates retain calendar components without time-zone conversion. ISO week labels describe the Monday in each row, including with a Sunday-first display.
Examples
Example 1
$calendar = $backups | New-ConsoleCalendar -Year 2026 -Month 10; $calendar | Show-ConsoleDisplay backup outcomes for October.
Example 2
New-ConsoleCalendar -Year 2026 -View Year -FirstDayOfWeek MondayBuild a year view with Monday-first weeks.
Parameters
- -Culture CultureInfo
- Culture for month and weekday labels and the default week start.
- -DateProperty String
- Date member (default Date). Convert timestamps to your business time zone before binding.
- -FirstDayOfWeek DayOfWeek
- Override the culture's first weekday.
- Possible values:
Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday - -InputObject PSObject[]
- Rows to mark, retaining their original values for day details.
- -LabelProperty String
- Description member (default Label).
- -Month Int32
- Gregorian month, required in Month view.
- -NoLegend SwitchParameter
- Omit the status symbol legend.
- -StatusProperty String
- Semantic outcome member (default Status).
- -Today DateTime
- Civil date to emphasize as today, useful with a fixed report clock.
- -View CalendarView
- Month (default) or Year.
- Possible values:
Month,Year - -Year Int32
- Gregorian year to display.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.