skip to Main Content

Asp.net – Date Format COrrect

How can I modify the displayed date format in my database view to exclude the timestamp (00:00:00) and show only the date in the format (DD/MM/YYYY)? <td>@marks["Test_Date"]</td> I am fetching date here and i have tried like this <td>@((DateTime)marks["Test_Date"]).ToString("dd/MM/yyyy")</td> It…

VIEW QUESTION

Asp.net – how the Visual studio not accepting my code

using System; using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; using Simple_website.Services namespace simple_website.Controllers { public class UserViewModel { public Guid Id { get; set; } public string Login { get; set; } public string FirstName { get; set; } public string LastName {…

VIEW QUESTION
Back To Top
Search