Avatar of bmanmike39

asked on 

How do I display the date, without the time in my View model? ASP.NET MVC4

I have a view model that i loop through with a foreach. I returns the data and time. i just want a short date.

foreach (var item in Model)
            @item.StartDate  // how would i show a short date here?


Open in new window

ASP.NETC#.NET Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon