Iwan,
Which layer is it being translated in? Is the proxy translating it when
it is sent to the web server? Or is the SQL Server translating it?
Either way, before you send it, you might want to convert it to GMT, by
making a call to the ToUniversalTime method on the datetime before you send
it to the web service.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"Iwan Petrow" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I have Win application -> Web service -> Sql Server. The user input
> date and time in format dd/MM/yy hh:mm. I convert it to datetime and
> send it to a web service which save it to the db. But the datetime is
> changed according the timezone of the server and the client machine (I
> think).
>
> What can I do that the date to stay the same (I want to send datetime
> type and I don't want to change windows setting of the server and the
> client machine)?
>
> Thanks.
>