I have the following code inside my asp.net mvc web application, where StartDate is of type DateTime?:-
@item.StartDate.Value.TimeOfDay
The above will display the current time including seconds and milliseconds such as, which i do not want :-
10:17:54.6023744
but is there a way to display only the hour:minutes with either AM or PM ?? Thanks