I have a DateTimeField control that I would like to only display dates with. I tried setting the DateOnly member to true but when I try to save the page that is using this it throws the following error:
[NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.SharePoint.WebControls.DateTimeField.set_DateOnly(Boolean value) +30
ASP.MNCRFPPAGE_ASPX__1578019166.__BuildControlPublishedStartDate() in C:\inetpub\wwwroot\wss\VirtualDirectories\8000\_catalogs\masterpage\MNCRFPPage.aspx:37
ASP.MNCRFPPAGE_ASPX__1578019166.__BuildControlPageTitleInTitleArea(Control __ctrl) in C:\inetpub\wwwroot\wss\VirtualDirectories\8000\_catalogs\masterpage\MNCRFPPage.aspx:25
ASP.MNC_MAIN_MASTER__1063580889.__BuildControlPlaceHolderMain() in C:\inetpub\wwwroot\wss\VirtualDirectories\8000\_catalogs\masterpage\MNC_main.master:443
ASP.MNC_MAIN_MASTER__1063580889.__BuildControlMSO_ContentDiv() in C:\inetpub\wwwroot\wss\VirtualDirectories\8000\_catalogs\masterpage\MNC_main.master:441
ASP.MNC_MAIN_MASTER__1063580889.__BuildControl__control24() in C:\inetpub\wwwroot\wss\VirtualDirectories\8000\_catalogs\masterpage\MNC_main.master:133
ASP.MNC_MAIN_MASTER__1063580889.__BuildControl__control2() in C:\inetpub\wwwroot\wss\VirtualDirectories\8000\_catalogs\masterpage\MNC_main.master:16
ASP.MNC_MAIN_MASTER__1063580889.__BuildControlTree(MNC_MAIN_MASTER__1063580889 __ctrl) in C:\inetpub\wwwroot\wss\VirtualDirectories\8000\_catalogs\masterpage\MNC_main.master:1
ASP.MNC_MAIN_MASTER__1063580889.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\9a65295e\deeb79d\App_Web_mnc_main.master_-1063580889.y606yxqr.0.cs:0
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1304
System.Web.UI.Page.get_Master() +68
System.Web.UI.Page.ApplyMasterPage() +17
System.Web.UI.Page.PerformPreInit() +57
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1255
I found this article which claims that it simply can't be done. Is this correct?