C#C
C#3y ago
yumo

❔ Exporting data in c# winforms button goes wrong

Im having a problem exporting some data from my dgv, heres my code:

tha's c# code to export all data visible in the datagridview, my date is like 10-05-2025 but sometimes its exporting with "/" instead of "-" and its changing the date with the month, im from Portugal and i cant figure this out i tried a lot of different things and nothing happend, sometimes some dates come with that , and the others correctly( i also search in the DB if i was inserting the data wrong but im not).

Would love some help thanks


https://pastebin.com/Wy0W9kD9
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?