.net WCF DateTime

Posted by freddy smith on Stack Overflow See other posts from Stack Overflow or by freddy smith
Published on 2010-05-04T05:41:42Z Indexed on 2010/05/04 5:48 UTC
Read the original article Hit count: 781

Filed under:
|
|
|

I want to be able to safely send DateTime's over WCF without having to worry about any implicit or automatic TimeZone conversions. The dates I want to send are "logical" dates. year month day, there should be no time component.

I have various server processes and client process that run on a variety of machines with different TimeZone settings.

What I would like to ensure is that when a user enters a date in a textfield (or uses a date picker component) on any client that exact what they see at data entry is what is sent over WCF, used by the server and seen by other clients when they request the data.

I am a little confused by the various questions and answers on this site concerning DateTime.Kind (unspecified, UTC, local).

© Stack Overflow or respective owner

Related posts about wcf

Related posts about .NET