Thanks it works however, how to use it without the culture thing?
My web.config already has the dutch culture.
DateTimeFormatInfo d = new CultureInfo("nl-NL", false).DateTimeFormat;
sVorigeMaand = d.MonthNames[DateTime.Now.AddMonths(-1).Month];
"Morten Wennevik" <
[email protected]> schreef in bericht
Hi Edwin,
System.Globalization.DateTimeFormatInfo d = new
System.Globalization.DateTimeFormatInfo();
string month = d.MonthNames[DateTime.Now.Month];
I can't find a way to obtain the months name from a date.
Like 'August'