Get Date/Time String Does Not Process Timestamps Correctly Out of Certain Range

Updated Jul 31, 2020

Reported In

Programming Language

  • LabVIEW G

Issue Details

I am adding a timestamp control and using the Get Data/Time String to process it, but when I input a date beyond February 5, 2040, or prior to January 1, 1904 it'll render it incorrectly. Looks like it's resetting the counter.

Solution

The Get Data/Time String function uses a U32 Integer to process the seconds passed since January 1, 1904. So after 4294967295 (U32) seconds the counter will start over. 

If you wish to cover a lager date range, you can alternatively use the Format Date/Time String function.