question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get-Date Incorrectly formats MMM as "Sept" instead of "Sep"

See original GitHub issue

Steps to reproduce

$> Get-Date -f MMM  # "Sep" is correct
Sep
$>Get-Date -f "dd MMM" # "25 Sept." is incorrect
25 Sept.

Expected behavior

Get-Date -f "dd MMM" should produce 25 Sep not 25 Sept.

Environment data


Name                           Value
----                           -----
PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
iSazonovcommented, Sep 28, 2020

It is better to ask in .Net Runtime repository.

1reaction
vexx32commented, Sep 25, 2020

This will be dependent on culture settings, which come from .NET.

If the culture you’re using defines the month name in this way, PowerShell has to respect it. If this is actually a bug, it needs to be filed in the dotnet/runtime repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I stop "mmm" providing "Sept" instead of "Sep"?
There seems to be a new bug whereby "mmm" format returns either 'Sep' or 'Sept' so all of my formulae for each September...
Read more >
September's short form "Sep" no longer parses in Java 17 ...
It seems to be that in the en_GB locale, the short form of September is now "Sept", not "Sep". All the other months...
Read more >
Solved: Date format issue - Power Platform Community
The date shows as "20-Ma20-2020" instead of "20-May-2020". Changing the format to Text(DataCardValue1.selectedDate, "dd-mmmm-yyyy") does not work too.
Read more >
Format month so September shows as Sep and not Sept
Format month so September shows as Sep and not Sept. I'm sure using MMM in the format date custom field used to give...
Read more >
How to Format Dates in JavaScript with One Line of Code
const currentMonth = new Date(); const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found