Hi
In txtPaymentDate0.Text it is showing "07/05/2022 00:00:00". On below line it is giving above error
DateTime PaymentDate2 = DateTime.ParseExact(txtPaymentDate0.Text, "dd-MM-yyyy", System.Globalization.CultureInfo.InvariantCulture);
Thanks
Hi
In txtPaymentDate0.Text it is showing "07/05/2022 00:00:00". On below line it is giving above error
DateTime PaymentDate2 = DateTime.ParseExact(txtPaymentDate0.Text, "dd-MM-yyyy", System.Globalization.CultureInfo.InvariantCulture);
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
Jochen BartlauRank #906 · 2.3K reputationPosted May 9, 2022, 1:48 PM EDT
Santosh KaranamRank #954 · 2.1K reputationPosted May 10, 2022, 10:39 AM EDT
output: 7/5/2022 12:00:00 AM