How do I format date as 10-Jan-1971 when regional setting is not English
I have a Windows with Regional settings - Hebrew
I have a consol application
and I have
Code:
System.DateTime date = new System.DateTime(1971,1,10);
System.Consol.WriteLine (date.ToString("dd-MMM-yyyy"));
Which outputs some strange non-readable symbols instead of short month name.
I'd like to see a month name or in Hebrew - or (preffered) ignoring regional settings of the windows - in English
How do I do it?
PS. I DO know how to output month as a number. I need a name.
I have tried to change the CodePage of the Consol - no success.