Quick-tip 88 demonstrates a behavior of the TradeStation DateTime object. In particular it looks at how you could save the temporary value of a DateTime object into another DateTime object using the Value property.
https://markplex.com/free-tutorials/tradestation-easylanguage-quicktips/quick-tip-88-save-a-datetime-object-into-another-datetime-object/