From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-29-2017 10:08 AM
Hello,
I am developing a program to search by date. I am using the time stamp control. The problem is when I select a date it outputs the current time as well.
How do I set the time to 0?
Thanks
Solved! Go to Solution.
03-29-2017 10:26 AM
Time = 0 has a special meaning. It is the epoch for LabVIEW which is Jan 1, 1904 Midnight GMT.
What do you want time = 0 to mean for you?
You can edit the display format properties for time stamp controls to turn off the time or date from being displayed. You can also set a double numeric indicator to show times and dates as well.
03-29-2017 10:28 AM - edited 03-29-2017 10:28 AM
There are a couple of functions in the Timing palette you should have a look at. They convert a timestamp into a cluster and back. You can just set the time in that cluster.
03-29-2017 10:52 AM
03-29-2017 12:29 PM
@ASTDan wrote:
That did the trick. I did find I have to set the hour to 1 to get 12:00 AM setting it to 0 it thought it was the day before.
That sounds like a Time Zone issue. I know there are options in there for UTC or not. Might want to make sure those are set to not be UTC.
03-29-2017 12:39 PM