You have to use it as an Int64
or a DateTimeOffset
. The code might look something like this:
var bytes = RST.Fields("Shift_Start_Time").Value as byte[];
var intVal = BitConverter.ToInt64(bytes, 0);
var dtOffset = new DateTimeOffset(intVal, new TimeSpan(-5, 0, 0));
In this example I've used a static -5
offset for EST
in the TimeSpan
. See this article for more detail.