David <(E-Mail Removed)> wrote:
> I need to covert DateTime Variables into a byte array but all of the
> conversion methods do not appear to handle the DateTime type. Is
> there a generic way to convert any property or object into a byte
> array?
Well, there's serialization - but for a DateTime, the easiest thing
would be to use the Ticks property to convert it to a long, and then
convert that into a byte array.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too