How could I change format of date ?
i want to chage the date format from 31/Dec/2018 21:42:56 into 2018-12-31 21:42:56 but not as a string . i want it as date time type .
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
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Dec 29, 2019, 10:07 PM EST
Suraj KumarRank #353 · 7.1K reputationPosted Dec 29, 2019, 10:04 PM EST
Abdalla OmranRank #5,857 · 284 reputationPosted Dec 29, 2019, 10:14 PM EST
Suraj Kumar . i want to do that with C# code and not sql . first of all i want to convert it to date time then save it in sql server as date time and not as string
Abdalla OmranRank #5,857 · 284 reputationPosted Dec 30, 2019, 1:40 AM EST
Suraj KumarRank #353 · 7.1K reputationPosted Dec 30, 2019, 2:12 AM EST