Skip to content

Fixes #13116 - Update UFormat differences btw PS and Unix#13118

Merged
sdwheeler merged 2 commits into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w592974-i13116
Jun 30, 2026
Merged

Fixes #13116 - Update UFormat differences btw PS and Unix#13118
sdwheeler merged 2 commits into
MicrosoftDocs:mainfrom
sdwheeler:sdw-w592974-i13116

Conversation

@sdwheeler

@sdwheeler sdwheeler commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

PR Summary

Update UFormat differences btw PS and Unix

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

Copilot AI review requested due to automatic review settings June 30, 2026 15:56
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Get-Date documentation to better describe differences between PowerShell -UFormat behavior and Unix strftime-style equivalents, with emphasis on week-number specifiers.

Changes:

  • Updates ms.date metadata across affected Get-Date.md versions.
  • Replaces the PowerShell 7.x -UFormat %s note with an example describing %W week-number differences between Unix and PowerShell.
  • Expands the Windows PowerShell (5.1) note to be broader than %s and to call out ISO 8601 inconsistencies.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
reference/7.7/Microsoft.PowerShell.Utility/Get-Date.md Updates ms.date and replaces the prior %s note with a %W Unix-vs-PowerShell comparison note.
reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md Same as 7.7: metadata update + %W Unix-vs-PowerShell comparison note.
reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md Same as 7.7: metadata update + %W Unix-vs-PowerShell comparison note.
reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md Same as 7.7: metadata update + %W Unix-vs-PowerShell comparison note.
reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md Updates ms.date and broadens the note to cover multiple specifiers and ISO 8601 inconsistencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread reference/7.7/Microsoft.PowerShell.Utility/Get-Date.md Outdated
Comment thread reference/7.7/Microsoft.PowerShell.Utility/Get-Date.md Outdated
Comment thread reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md Outdated
Comment thread reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md Outdated
Comment thread reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md Outdated
Comment thread reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md Outdated
Comment thread reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md Outdated
Comment thread reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md Outdated
Comment thread reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md Outdated
Comment thread reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit fb44ff1:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-7.6)
reference/7.7/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-7.7)

For more details, please refer to the build report.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 5de287d:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-7.6)
reference/7.7/Microsoft.PowerShell.Utility/Get-Date.md ✅Succeeded View (powershell-7.7)

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit cd5c496 into MicrosoftDocs:main Jun 30, 2026
5 checks passed
@sdwheeler sdwheeler deleted the sdw-w592974-i13116 branch June 30, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing warning for Uformat %V Disambiguation needed Get-date %V and %W Uformat specifier

2 participants