I have a String which is of the form: 2013-10-20 15:18:39.954
. I am trying to figure out the best way to store this data so that it would use the least possible memory. Currently I am storing it as a Date object in Java. From this link I found out that the object uses about 32 bytes of memory. Is there some way to use less memory to store this data? I am trying to use as low memory as possible, so even 1 byte lesser would be fine.
I was thinking that I could use a String but this link says Strings also use a lot of memory. Any help would be appreciated!