When I add a service reference to my VB.Net project all of the properties of type DateTime get changed to type Date. The project is ASP.Net using framework 4.0. The web service being referenced is C# framework 4.0.
How can I keep this from happening?
As far as I’m aware,
Datein VB is just an alias for theDateTimeCLR type. For example, this code:compiles to the equivalent of:
So the types aren’t really being changed – they’re just being shown as
Date. It’s much like the difference betweenInt32andintin C#, I believe. (There may be some other differences such as extra methods provided viaDate, but the values are of the same type.)