F
Filippo
Hi Gurus,
I have a date and I need to convert it into a HEX value with a checksum.
SCENARIO
===================
Starting point:
DateTime aDate = new DateTime(2003,05,29)
Expected Result:
07D3051DFC
Where the values represent:
07D3 the year
05 the month
1D the day
FC the sum of the above values (yyyy should be summed separating the first two bytes
from the second two bytes)
....like this ==> (yy + yy + mm + dd)
Can any C# guru provide me with a simple function that can take a date and create the expected HEX?
Many thanks in advanced,
Filippo.
I have a date and I need to convert it into a HEX value with a checksum.
SCENARIO
===================
Starting point:
DateTime aDate = new DateTime(2003,05,29)
Expected Result:
07D3051DFC
Where the values represent:
07D3 the year
05 the month
1D the day
FC the sum of the above values (yyyy should be summed separating the first two bytes
from the second two bytes)
....like this ==> (yy + yy + mm + dd)
Can any C# guru provide me with a simple function that can take a date and create the expected HEX?
Many thanks in advanced,
Filippo.