Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Get-OfficeWordDatePicker

Aliases: WordDatePickers
Namespace PSWriteOffice
Aliases
WordDatePickers
Inputs
OfficeIMO.Word.WordDocument
Outputs
OfficeIMO.Word.WordDatePicker

Gets date picker content controls from a Word document.

Remarks

Gets date picker content controls from a Word document.

Examples

Authored help example

Find date picker controls used by a form.

PS>


$dates = Get-OfficeWordDatePicker -Path .\IntakeForm.docx -Tag 'deadline-*'
            $dates |
                Select-Object -Property Alias, Tag |
                Format-Table -AutoSize
        

Filters date picker content controls by tag before a form validation pass.

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.

Syntax

Get-OfficeWordDatePicker [-Alias <String[]>] -Path <String> [-Tag <String[]>] [<CommonParameters>]
#
Parameter set: Path

Parameters

Alias String[] optionalposition: namedpipeline: False
Filter by date picker alias (wildcards supported).
Path String requiredposition: 0pipeline: Falsealiases: FilePath, InputPath
Path to the .docx file.
Tag String[] optionalposition: namedpipeline: False
Filter by date picker tag (wildcards supported).

Outputs

OfficeIMO.Word.WordDatePicker

Get-OfficeWordDatePicker [-Alias <String[]>] -Document <WordDocument> [-Tag <String[]>] [<CommonParameters>]
#
Parameter set: Document

Parameters

Alias String[] optionalposition: namedpipeline: False
Filter by date picker alias (wildcards supported).
Document WordDocument requiredposition: namedpipeline: True (ByValue)
Word document to read.
Tag String[] optionalposition: namedpipeline: False
Filter by date picker tag (wildcards supported).

Outputs

OfficeIMO.Word.WordDatePicker