Page 1 of 1

Month Name

Posted: Fri Sep 24, 2010 8:27 am
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).

Month Name

Posted: Fri Sep 24, 2010 9:18 am
by Brendan
Either of these should work

Code: Select all

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

Code: Select all

{Datasource.MyDate.ToString("MMMM")}

Month Name

Posted: Fri Sep 24, 2010 1:46 pm
by MikeC
That worked. Thanks!