R
Richard
Hi all,
Hope everybody is having an OK monday?!!?
Quick question, I have a database in which the dates are stored as
longs. I think the original program was VB and the dates were just
cast to long before being saved to the database.
I now need to convert these long values back into datetime values.
I could do this in SQL by doing:
PRINT Convert(varchar, Convert(datetime, Convert(int, '38875')-2))
but was wondering if there was a C# way?
Cheers,
OO
Hope everybody is having an OK monday?!!?
Quick question, I have a database in which the dates are stored as
longs. I think the original program was VB and the dates were just
cast to long before being saved to the database.
I now need to convert these long values back into datetime values.
I could do this in SQL by doing:
PRINT Convert(varchar, Convert(datetime, Convert(int, '38875')-2))
but was wondering if there was a C# way?
Cheers,
OO