How to convert DateTime.Now (or basically any other DateTime format) to something like 31st January 2009 (although i would like it in polish so i need 29 Styczeń 2009). Do i need to create some array and check each month number with that array or there’s some built in feature to save the day?
With regards,
MadBoy
The CultureInfo already knows about month names in different locales — if you need this info explicitly, e.g. to print out a list of month names, you can get it from the DateTimeFormatInfo class, but for a simple formatting requirement it’s easier just to use DateTime.ToString with the required culture and a format string.