I am trying to store the reception of some data timestamp to a variable like this:
DateTime timetora = DateTime.Now;
DateTime receptiontimestamp;
receptiontimestamp = timetora;
but I think that as timetora is always progressing receptiontimestamp does the same. But I want it to remain constant and point to the reception moment not the present.
What am I doing wrong?
It doesn’t continue “progressing”
When you do:
timetora is now fixed to that time (And so is any other DateTime you set to timetora) There’s nothing wrong with what you wrote.