Month Name

Stimulsoft Reports.NET discussion
Post Reply
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Month Name

Post by MikeC »

I have a variable that contains a datetime (such as 09/23/2010; 03:59:38). I need to be able to pull out just the month into a single field and convert it to a name. The Month() function only returns an integer and I need the actual month name (such as September).
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Month Name

Post by Brendan »

Either of these should work

Code: Select all

{Format("{0:MMMM}", Datasource.MyDate)}
or

Code: Select all

{Datasource.MyDate.ToString("MMMM")}
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Month Name

Post by MikeC »

That worked. Thanks!
Post Reply