Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C Sharp
DateTime to byte[]
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
=?Utf-8?B?Um95?=
#1
DateTime to byte[]
Jun 27 '08, 07:57 PM
How do I convert a DateTime to a byte array? BitConverter does not take a
DateTime.
Marc Gravell
#2
Jun 27 '08, 07:57 PM
Re: DateTime to byte[]
How do I convert a DateTime to a byte array? BitConverter does not take a
DateTime.
Well, you can use when.ToBinary() and when = DateTime.FromBi nary(...) to
convert to/from a long, and use BitConverter for long to/from byte[] -
would that do?
Marc
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment