Prior to recent Windows 11 Update when I had code that was DateTime.Now.ToString("MMM dd yyyy") the output would be "Jul 12 2022" but recently it has started to produce "July 12 2022" (this is on the same machine; with culture en-AU before and after the update)
It appears to only be when one does that with more than just "MMM" i.e. DateTime.Now.ToString("MMM") still produces "Jul" but adding the "dd yyyy" makes it "July"
This looks to be some odd combination of culture specific and Windows 11 Updates as: I still get "Jul" if: machine is running Windows 10, machine is set to en-US; but if Windows 11 and latest updates and en-AU then "July 12 2022" for "MMM dd yyyy"
The "easy" solution (if you've come here and are en-AU and having the same issue) is to add CultureInfo.Invariant to the call: so DateTime.Now.ToString("MMM dd yyyy", CultureInfo.Invariant)
The extended questions are:
- How was one to know about this change? I've looked at Windows 11 Update logs and similar and don't see anything about this change; have we been informed of this change?
- If it is a bug; what is the right way to submit a bug (other than stackoverflow so others see a sign-post) to have that looked at?