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.
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.
Jochen BartlauPosted May 9, 2022, 5:48 PM
Santosh KaranamPosted May 10, 2022, 2:39 PM
output: 7/5/2022 12:00:00 AM