Date format problem, VB.net

Hi

Having som problem with formating a date.
The date is for example 2008-01-01 (Swedish OP-system)

  '// Convert number month to text
  strMonth = dtDateStart.Month.ToString("MMMM", System.Globalization.CultureInfo.CurrentUICulture)

The strMonth will result in this: Mmmm, 01
Any tips?
       
LVL 1
AWestEngAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
PaulHewsConnect With a Mentor Commented:
Use instead:

strMonth = dtDateStart.ToString("MMMM", System.Globalization.CultureInfo.CurrentUICulture)
0
 
AWestEngAuthor Commented:
Dam, I missed that one.. hehe.. Thx.. Prefect!!
0
All Courses

From novice to tech pro — start learning today.