I am trying to get the actual bytes from memory that the current date and time is stored in. Getting the bytes will compress the data since I will be saving it and encrypt it to the average user. I believe that there are 8 bytes that make up a data and they are stored in a double precision floating point number. I tried this
Dim D as doubl
D = cdbl(now
It just underlined now and said there was an invalid conversion. With the number value of the date variable, I could at least convert it back to the byte format myself. However, it would save a lot of cpu if the bytes could be read directly. My ultimate goal is the data in a byte array so it can be easily saved. I'm not sure how to get the actual bytes from memory though.
Are there any other common ways of compressing dates? Thanks for the help.