LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get system time format in time stamp

Hello All,

 

I have one problem regarding Time stamp. I want system time stamp format in Time control. If my system date/time format change then automatically my time stamp format should also change.If my system Time stamp format is hh:mm:ss AM/PM dd/mm/yy so in my LabVIEW time stamp format should also same. If System time stamp format hh:mm:ss AM/PM mm/dd/yyyy so in my LabVIEW time stamp format should also same.

 

So Please help me its a very important for my automation application.

 

Thank You.

Vinal Gandhi

Vinal Gandhi, CLA
0 Kudos
Message 1 of 2
(3,772 Views)

Hi Vinal,

 

have you tried the FormatDateTimeString function with a standard string indicator and the "%c" formatcode as described in the help instead of the generic timestamp indicator?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(3,761 Views)