i have a datetime2 column in the database.I'm trying to fetch that from database and
I want to display it in the view as string.
i tried: dt.ToString("dd/MM/yyyy");
But it gave an error.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vinay SinghPosted Aug 24, 2016, 2:54 AM
Nitin SontakkePosted Aug 24, 2016, 1:32 AM
Rajeesh MenothPosted Aug 24, 2016, 1:19 AM
Suthahar JegatheesanPosted Aug 24, 2016, 1:05 AM
ketan borsdiyaPosted Aug 24, 2016, 12:54 AM