A Date field might display as truncated in the Experience Editor when formatted with spaces. For example, the following code samples:
@Html.Sitecore().Field("DateFieldName", Sitecore.Context.Database.GetItem("/sitecore/content/Home"), new {format = "MMMM dd, yyyy"})
<sc:Date runat="server" ID="PublishDate" Field="Publish date" Format="MMMM dd, yyyy" />
result in October instead of October 29, 2020.
To resolve this issue, consider one of the following options:
For example:
@Html.Sitecore().Field("DateFieldName", Sitecore.Context.Database.GetItem("/sitecore/content/Home"), new {format = "MMMM dd, yyyy"})
or
<sc:Date runat="server" ID="PublishDate" Field="Publish date" Format="MMMM dd, yyyy" />