converting an SQL timestamp to/from a real date

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

In vb.net, is there anyway to convert a SQL timestamp field into a real
date. Also can I convert a real date into a SQL timestamp
 
A SQl Server timestamp column is not a date at all.

It is a binary representation of a number.

Cast it as int to see it's value.
 
Back
Top