07-14-2010 10:06 AM
Hello,
I am currently using the write to spreadsheet file.vi to save data.
It looks something like this:
I also want to add the date and time stamp into the saved data but do not know a way of converting a date and time stamp to 'double format'. When the date and time stamp is in teh double format I can easily concatenate the data stream with the 'date and time' in a 2-D array.
Thanks,
Nevica
07-14-2010 10:08 AM
Look on the math palette.
07-14-2010 10:18 AM
What I would like to do is convert a date and time stamp (which has the form something like this: xxxx/xx/xx xx:xx:xx) to a 'double'. The problem I am having is the non-numeric characters.
07-14-2010 10:21 AM
Like this
07-14-2010 10:29 AM
Hello,
Thanks for your example. BUT in your example your are converting a number to a double precision float. I want to convert a string to a double. The problem I am having is the formatting of the date and time stamp which includes '/' (forward slashes) and ':' (colons).
Any ideas anyone?
Thanks,
Nevica
07-14-2010 10:30 AM
try this
07-14-2010 10:32 AM
Could you not use "Get Date/Time in Seconds"?
Jim
07-14-2010 10:50 AM - edited 07-14-2010 10:51 AM
@nevica wrote:
Hello,
Thanks for your example. BUT in your example your are converting a number to a double precision float. I want to convert a string to a double. The problem I am having is the formatting of the date and time stamp which includes '/' (forward slashes) and ':' (colons).
Any ideas anyone?
Thanks,
Nevica
You asked how to convert a timestamp - not a string.
You can use the Scan From String.
07-14-2010 10:55 AM
My apologies for not being clear.
It looks like get date and time in seconds will work as you have both suggested.
Nevica
07-14-2010 11:21 AM
aeastet - nice icon