G
georgejetson
Hi,
VB.net 2005 CLR 2.0
I have a dataset with a datatable...there is one datetime field, and about
30 double fields.
The datetime field is in UTC Time, but my client application needs to see
this in localtime.
The datetime field is accurate to the millisecond...
The data source is a flatfile (not a db) [tabbed delimited], thus, I can't
easily use the functionality of a server to return the gernerated column I
need (utc to local time)
I'm using the ms text driver, and Schema.ini to get the data into my
datatable, and this works fine.
Is there a way to add a datacolumn to my datatable (type datetime) that uses
an expression and convert the utc time in the orig field to localtime in a
new field?
thanks,
george jetson
On the side, against sqlserver 2000 in ado.net, I can't seem to write a
query against a view to return some rows when the timestamp has millisecond
resolution (When I don't use this resolution, it works)
i.e.: SELECT myField from myTable where myTime = '3/6/2008 9:30:00' WORKS
i.e.: SELECT myField from myTable where myTime = '3/6/2008 9:30:00.723'
DOES NOT WORK
VB.net 2005 CLR 2.0
I have a dataset with a datatable...there is one datetime field, and about
30 double fields.
The datetime field is in UTC Time, but my client application needs to see
this in localtime.
The datetime field is accurate to the millisecond...
The data source is a flatfile (not a db) [tabbed delimited], thus, I can't
easily use the functionality of a server to return the gernerated column I
need (utc to local time)
I'm using the ms text driver, and Schema.ini to get the data into my
datatable, and this works fine.
Is there a way to add a datacolumn to my datatable (type datetime) that uses
an expression and convert the utc time in the orig field to localtime in a
new field?
thanks,
george jetson
On the side, against sqlserver 2000 in ado.net, I can't seem to write a
query against a view to return some rows when the timestamp has millisecond
resolution (When I don't use this resolution, it works)
i.e.: SELECT myField from myTable where myTime = '3/6/2008 9:30:00' WORKS
i.e.: SELECT myField from myTable where myTime = '3/6/2008 9:30:00.723'
DOES NOT WORK