How do I format my vb.net mvc date to a shortdate in my view
<td>
<%: Html.DisplayFor(Function(modelItem) currentItem.DateCreated)%>
</td>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Format(date, “MM/dd/YYYY”)
I don’t know what modelItem is, but i think you are looking to do this
Not sure if thats right, i don’t really know what Html.DisplayFor actually does. I’ve never ran into that before. But the Format(yourdate, shortdateformat) will definitely work