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" <Mo************@hotmail.comschreef in bericht
news:op***************@tr024.bouvet.no...
Hi Edwin,
System.Globalization.DateTimeFormatInfo d = new
System.Globalization.DateTimeFormatInfo();
string month = d.MonthNames[DateTime.Now.Month];
On Mon, 31 Jul 2006 10:55:01 +0200, Edwin Knoppert <ne**@hellobasic.com>
wrote:
I can't find a way to obtain the months name from a date.
Like 'August'
--
Happy Coding!
Morten Wennevik [C# MVP]