I tried converting it to byte array, but a minimum byte array of 5 is created. But I have only 4 bytes only for this date time to stored as byte in my array of byte.
code is like this:
byte[] b = new byte[] {10,12,12,12};
DATETIME t=datetime.now();
array.copy(BitConverter.GetBytes(t.ticks),1,b,4);
but getbytes(t.ticks)
returns array of 8 bytes. I somehow want it to convert to 4 bytes only.