I am using LINQ and in my database Tstamp fileld with Timestamp datatype. Now i want to fetch data from SQL by using LINQ query and it returns me Tstamp datafield value in System.Data.Linq.Binary datatype. Now i want to convert this Binary datatype value in Datetime format but how?
Share
DateTime!=timestampA SQL
timestampis a monotonically increasing number, expressed as binary. Not time. Nothing to do with time, except that they both roll ever-forwards. Which is whytimestamp(as a keyword) is now deprecated (as confusing), and replaced withrowversion.You cannot get time from a
timestamp. If you want the time, store the time asdatetime.