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.
Nitin SontakkeRank #264 · 9.6K reputationPosted Aug 23, 2016, 9:32 PM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Aug 23, 2016, 8:54 PM EDT
Suthahar JegatheesanRank #162 · 14.5K reputationPosted Aug 23, 2016, 9:05 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 23, 2016, 9:19 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Aug 23, 2016, 10:54 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts