Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I have created the StartTime field by using the below code. Provided the required details, and not selected the StartTime field value then published the page. But on the publishing page startTime field value showing 12:00. How can we show empty/null if not select the StartTime.
[ClientEditor(ClientEditingClass = "dijit/form/TimeTextBox")]
public virtual DateTime StartTime { get; set; }
.CSHTML
<p>@Model.CurrentPage.EventEndTime.ToString("hh:mm tt")</p>