Hi
DateTime sessionDate = Convert.ToDateTime(colum.SessionDate).ToString("dd-MM-yyyy");
Thanks
Hi
DateTime sessionDate = Convert.ToDateTime(colum.SessionDate).ToString("dd-MM-yyyy");
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted Apr 25, 2023, 4:16 AM EDT
Hello Ramco,
Try below:
var sessionDate = Convert.ToDateTime(colum.SessionDate).ToString("dd-MM-yyyy"); OR string sessionDate = Convert.ToDateTime(colum.SessionDate).ToString("dd-MM-yyyy");Thanks
Naimish Makwana
Ramco RamcoRank #462 · 5.4K reputationPosted Apr 25, 2023, 4:19 AM EDT
Hi Naimish
I want date value. I want Datapart only of SessionDate
Thanks
Naimish MakwanaRank #324 · 7.7K reputationPosted Apr 25, 2023, 4:22 AM EDT
Use below:
Thanks