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

DATETIME and DATE fields, Visual Studio (no replies)

$
0
0
I have a table containing a DATE field and a DATETIME field. Using either the CmdMysQL.ExecuteScalar.GetType on either field returns a TYPE=DATETIME. Also if I use the CmdMySQL.ExecuteReader() and retieve the fields, they both show up as DATETIME.

This is causing me some grief, as I want to use Visual Studio Crystal Reports. Whenever I have a DATE field in the report, it shows up as "dd-mmm-yyyy hh:mm:ss". I can't format out the time component.

I looked at the source code for the Connector. In there I found the module ...\MySql.Data\Provider\Source\Types\MySqlDateTime.cs but no corresponding module for DATE. So I can only gather that this is by design.

Can someone please explain whether this is indeed by design, or is it an oversight? ANy suggestions as to what I can do with my reports?

Viewing all articles
Browse latest Browse all 1451

Trending Articles



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