Carsten,
Since C# does not have a DateAndTime object (but does have a DateTime)
which has a MonthName method, how could you do the same thing in C#?
John
For the months, you can do something like this:
Dim monthsFull(11) As String
Dim monthsAbbr(11) As String
For monthNumber As Integer = 1 To 12
' Get full month name
monthsFull(monthNumber - 1) = DateAndTime.MonthName(monthNumber)
' Get abbreviated month name
monthsAbbr(monthNumber - 1) = DateAndTime.MonthName(monthNumber,
True)
Next
Please note that this is locale aware, i.e. it will return the
localised names, depedning on the regional settings on the system, on
which you're running the code. As to the days of the month, I'm not
quite sure what you mean. Check out the DataAndTime module, and in
particular the Weekday and WeekdayName functions.
--
Carsten Thomsen
Enterprise Development with VS .NET, UML, AND MSF
http://www.apress.com/book/bookDisplay.html?bID=105
Communities -
http://community.integratedsolutions.dk
is there a way in .net to pull a list of months, and then pull a list
of days in the month. instead of retyping a control that lists the
number of days for each month i was hoping it was already in .net.
thank you