asp.net core string format cshtml code example Example: mvc string format @String.Format("{0:dd MMM yyyy HH:mm}", item.Date).ToString()