G
Guest
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
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