To download NI software, including the products shown below, visit ni.com/downloads.
This example converts a formatted string into a timestamp.
This code takes in an input string and converts it to a timestamp. It expects the string to be in the following format: 4/30/2004 7:48:47 PM. Any other format will cause the VI to return an error.
Software: LabVIEW NXG 1.0 or compatible
1. Enter the string to be converted in the Input String control.
2. Run the VI.
3. Note that the timestamp will update to match the input string.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.