How do I get the names of the months ?

  • Thread starter Thread starter C.K
  • Start date Start date
C

C.K

I need to have an end result of

a(1)="january"
a(2)="febuary"
etc
etc
etc
a(12)="december"

It just occured to me that there might be en elegant way of
obtaining the names of the months from the datetime object
or the gregoriancalendar object, any ideas?
 
* "C.K said:
I need to have an end result of

a(1)="january"
a(2)="febuary"
etc
etc
etc
a(12)="december"

It just occured to me that there might be en elegant way of
obtaining the names of the months from the datetime object
or the gregoriancalendar object, any ideas?

Take a look at the 'MonthName' function.
 
Take a look at the 'MonthName' function.
or you could use the DateTimeFormatInfo.CurrentInfo.GetMonthName function -
this returns culture specific strings.

hope that helps..
Imran.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top