Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

I have a problem querying a date with connector 8.0.17 (no replies)

$
0
0
i have this code in the start of my project

System.Threading.Thread.CurrentThread.CurrentCulture=System.Globalization.CultureInfo.CreateSpecificCulture("es-DO")
System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortDatePattern = "dd'/'MM'/'yyyy"

The problem is that my application handles the date in "dd/MM/yyyy" format, when I query a date with connector 8.0.16 or lower, it doesn't matter if it is from a stored procedure or a simple select, the date comes in "dd/MM/yyyy" format, but from version 8.0.17 to the most recent 9.0.0 when I consult a date it has the format "MM/dd/yyyy" causing errors in my program.

Is there a way to configure the connector's date format, or the connector's culture?

Thank you!

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>