LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set time now

I have an array of Time Stamps that I want to set to the Time Now when the user clicks a button for that purpose.  I get the current time and format it to my liking.  I'm just not sure how to convert it back to a time stamp and stuff it back into the array.  Well, I know how to get it back into the array, it's just the conversion from string to time stamp I'm not sure about.
0 Kudos
Message 1 of 5
(3,320 Views)
Why not put the timestamp directly into the array? The Format Date/Time String is for display purposes only. Converting it to a string and then back to the timestamp is not necessary if you simply want to place the current time into the array.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 5
(3,312 Views)
That seems a bit silly. You format a string and then convert back to a timestamp? Why?
0 Kudos
Message 3 of 5
(3,309 Views)

Even i am not sure why you want to do that..How ever this is how it can be done.

 

 

1.png

 

 

Guru

Regards
Guru (CLA)
0 Kudos
Message 4 of 5
(3,286 Views)

Never underestimate a good night's sleep. 

0 Kudos
Message 5 of 5
(3,258 Views)