LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timestamp needed

I need to create a timestamp from the computer that gives me month, day, year, hour, min, sec. I know this is an easy question sorry!! All comma delimited. I then will concatentate this with data from a comma delimited text file that has my data. Does anyone know how to do this?

Thanks.
0 Kudos
Message 1 of 3
(2,551 Views)
It is easy. On the Time and Dialog palette, drop Get Data/Time in Seconds and Format Date/Time String functions onto the diagram. Wire the output of Get Date/Time to the time stamp input of Format Date/Time. For the time format string input of Format Date/Time, use the constant %m,%d,%Y,%H,%M,%S.
0 Kudos
Message 2 of 3
(2,551 Views)
Look at the Time & Dialog functions. Especially the Get Date/Time String
and Seconds to Date/Time. You can easily convert the output of these
functions into the format you need.

"mreardon" wrote in message
news:50650000000800000007D10000-1079395200000@exchange.ni.com...
> I need to create a timestamp from the computer that gives me month,
> day, year, hour, min, sec. I know this is an easy question sorry!!
> All comma delimited. I then will concatentate this with data from a
> comma delimited text file that has my data. Does anyone know how to
> do this?
>
> Thanks.
0 Kudos
Message 3 of 3
(2,551 Views)