Closed Sally-Xu closed 9 years ago
I get this from Fayde which is identical to Silverlight.
Fayde
Silverlight
This is what I got from Silverlight:
Which version of silverlight
I'm on Silverlight 5. I've also tested in non Silverlight project (like a simple C# UnitTest project). Both return without comma.
Do you see the comma in your window's calendar header bar? Or if you put a Silverlight calendar control in the page, do you see "June 2015" or "June, 2015"?
Ooh. You could be using a different culture. What are your culture settings?
default US.
Now I think difference is between Win8 and Win7. Are you on windows 7? The calendar (or the same silverlight code) on my windows 7 machine output "June, 2015".
I am going to close this for now. As of now, the code is consistent with MSDN. We also don't want to be held hostage by .NET. Replicating .NET environmental differences is caustic to future development.
When using "Y" format, DateTime.toString("Y") returns "Month, Year".
Silverlight or C# in general returns "Month Year" (without comma).