Hi
I'm trying to modify hex code in a file that shows a date in a program.
I cannot figure out the code:
a5 c6 = 2017/04/05
3e c8 = 2017/08/14
7b c9 = 2017/11/31
What would be the hex code to display 2017/12/14
Any help greatly appreciated
|
|
Did a little bit more experimenting....
If you're running Windows open your calculater and set it to programming mode. Then type in the dates in YYYYMMDD format.
The values you gave us earlier then show these "decimal" to hex values:
2017/04/05 => 20170405 = 0x133C6A5
2017/08/14 => 20170814 = 0x133C83E
2017/11/31 => 20171131 = 0x133C97B
2017/11/30 => 20171130 = 0x133C97A
Those are the 4 dates you gave us with corresponding hex values. Observe that the last two bytes are month and day values, with the bytes simply swapped. I think your programme is storing the values as 4 bytes you've only been giving us the last two.
I would then guess your required value for 2017/12/14 is CEC9
Here's the working...
2017/12/14 => 20171214 => 0x133C9CE. Take the last two bytes (C9CE) and swap them to CEC9
|
|