C# DateTime is a value type

DateTime is a value type (struct)

This means that the following creates a copy:


DateTime toBeClonedDateTime = DateTime.Now;
DateTime cloned = toBeClonedDateTime;

ref web:
https://stackoverflow.com/questions/4265399/how-can-i-clone-a-datetime-object-in-c

留言