thank you OriginalGriff, here's what I have ended up with:
namespace ExtensionLibrary
{
public static class ExtensionLibrary
{
public static String FormatNULLDateTime(this DateTime? date)
{
if (date.HasValue)
return ((DateTime)date).ToString("dd MMMM");
else
return "";
}
public static String FormatDatetime(this DateTime date)
{
return ((DateTime)date).ToString("dd MMMM");
}
}
}