Get Date/Time String Rolls Out and Gives Me Wrong Date and Time Strings

Updated Mar 10, 2026

Reported In

Software

  • LabVIEW

Issue Details

I am using the Get Date/Time String function, but if I use a timestamp after 12:28:15.999 AM 2/6/2040, the function returns wrong date and time strings. For example, if I input a 12:28:16.000 AM 2/6/2040 time stamp, the date and time strings roll to 6:00 PM 12/31/1903.

Solution

As of LabVIEW 2018 SP1, the Get Date/Time String function is rolling out on 12:28:15.999 AM 2/6/2040. If you need to use timestamps later to that, you can instead use the Format Date/Time String function to mimic the output of the Get Date/Time String as shown below and in the attached VI.

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.

Additional Information

Refer to Format Codes for the Time Format String to learn about the different ways you can configure the Format Date/Time String function output.