LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get 24-Hour time stamp


We want to write datas with corresponding 24-Hour time stamp to a text file. We are not getting this time format(24-Hour) instead we are getting  12-Hour (AM/PM)only. Can anybody help us towards the same.

Regards,
Labview Lovers.

0 Kudos
Message 1 of 4
(8,728 Views)

Hi,

If it's windows  ?  You can change this with your 'regional settings' in the control panel. Choose 'customize' and 'time' tab

 

0 Kudos
Message 2 of 4
(8,721 Views)
Since you're saving to a text file, I assume that means you're converting the timestamp to a string. In that case, make sure you're using the right functions - if you use Format Date/Time String you can format the exact structure of your string (including what you want). Look at the help for the function for more details.

___________________
Try to take over the world!
Message 3 of 4
(8,717 Views)
Hi,
 
Are you using 'Format Date/Time String' function to botain timestamp from your system??
If you are,  Give format string as "%H:%M" to get 24 hour and minute time stamp
 
Look at attached VI
 
regards
 
Dev
Message 4 of 4
(8,716 Views)