Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

Stars 1,019
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.41.0
Language: PowerShell Updated: 2026-10-03
Command

New-HTMLTimelineItem

Module PSWriteHTML

Creates a new HTML timeline item with specified date, heading text, content text, and color.

Syntax

New-HTMLTimelineItem [[-Color] <String>] [[-Date] <DateTime>] [[-HeadingText] <String>] [[-Text] <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

This function generates an HTML timeline item with the provided information. It allows customization of the date, heading text, content text, and color of the timeline item.

Examples

Authored help example

EXAMPLE 1

New-HTMLTimelineItem -Date "2022-01-01" -HeadingText "Project Kickoff" -Text "Started the project development phase." -Color "Blue"
Creates a timeline item with a specific date, heading, content, and color.

EXAMPLE 2

New-HTMLTimelineItem -HeadingText "Meeting with Client" -Text "Discussed project requirements." -Color "Green"
Creates a timeline item with the current date, specified heading, content, and color.

Parameters

-Color String optionalposition: 3
Specifies the color of the timeline item. If not provided, the default color is used.
-Date DateTime optionalposition: 0
Specifies the date for the timeline item. Defaults to the current date if not specified.
-HeadingText String optionalposition: 1
Specifies the heading text for the timeline item.
-Text String optionalposition: 2
Specifies the content text for the timeline item.

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.