I want to save the file with time stamp(ex.filename yymmddhhmmss.csv).
I used "to file"object,and added filename terminal. I connect now() function result,converted string format,
but there was an error.because the result contains "/" or" : ".
How do I get timestamp?
I used "to file"object,and added filename terminal. I connect now() function result,converted string format,
but there was an error.because the result contains "/" or" : ".
How do I get timestamp?
I used to string object and added transaction in the time stamp format.
then, I can choose sevefal formats (date,time,date&time.etc),each format cointains some kind of symbol (e.g. "/" or": ").
Use the to string object,is it possible to take out only the numbers?
As I mentioned, there are several ways to do this. Without the To String, you could do it like this
now() then pass that into another formula box ( say on a pin called TS )
FILENAME + year(TS) + "" + month(TS) + "" + mday(TS)
results in FILENAME2015828
The empty strings ( "" ) are needed to prevent VEE just adding the numbers together - you could use asText(year(TS)) instead at your preference.
Using a similar approach with To String would allow you to format the day and month as 2 digits ( although again there are other ways to do that! ).
HTH
Mike
I was ablet to put a time stamp.
Have a nice weekend :)
Edited by: ota on Aug 28, 2015 6:11 PM