I wrote an article that might help. See
http://www.developer.com/db/article.php/10920_3695251_1.
hth
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit
www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------
"georgejetson" <(E-Mail Removed)> wrote in message
news:2C1E9DB5-3F86-4C3B-A037-(E-Mail Removed)...
> Hi,
>
> Env:
> VB .net 2005 against SQLServer 2000 SP4 on Windows XP (latest SP)
>
> Situation: My database has all date/times stored in UDT/GMT in datetime
> fields in sqlserver...(I'm in USA EST, thus, GMT now is +4.00) [When
> daylight
> savings time goes away in the fall, it will be +5.00)
>
> My VB 2005 .net GUI application searches for 'myData' between 2 points in
> time, and I convert the query request from local time to GMT before I make
> the query, the query then returns the correct resultset, but of course,
> the
> date/times are in UDT/GMT
>
> Question: Is there a way for me to have the datetime(s) in field(s)
> flagged
> as UDT/GMT, or some Globalization setting, property, or class I can use to
> help me always display datetimes that are flagged as UDT to display in
> localtime?
>
> Example: Bill, a client, orders a widget at 7AM est, it is logged in the
> database as 11AM since est is +4.00 hours over GMT
>
> Now, when Bob, a seller, wants to view a history of all the orders he took
> in his office in NYC between 2 points in time, my gui app converts his
> from
> and to datetime requests into GMT times and queries the database
>
> My problem is that the resultset, although correct, still shows the data
> in
> GMT/UDT time, and Bob needs to view the data in his localized time zone
> (should subtract -4.00 hours)
>
> Any hits,clues,or examples would be greatly appreciated
>
> --
> thanks in advance,
> georgejetson