views:

39

answers:

1

How do you turn a field from the database, say, (8/8/2009) into 8 August?

+2  A: 
var date = new DateTime(2009, 8, 8)
    .ToString("d MMMM", CultureInfo.CreateSpecificCulture("en-EN"));
eu-ge-ne
+0 for using `var`
Rubens Farias
where would i add that? in the controller or the view? could you give a complete example of where it goes