I have a <table>
and i want in one <td>
, to show date time like this: 04/2017
Its April, 2017:
<td class="card-date">
@Html.DisplayFor(Function(modelItem) item.CreditCardExpirationDate.Month) +"/"+
@Html.DisplayFor(Function(modelItem) item.CreditCardExpirationDate.Year)
</td>
But the year is in 4 digit format, i need just 2 digits. And i need to add zero before the month. so it be 04 and not just 4. Thx.