LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic file generation using system date and time

Solved!
Go to solution

Hi guys,

 

Iam trying to generate a path for file creation automatically using System date and time. I am running into errors with respect to special characters in filename. I am trying to parse the string to get date and time without the '/' and ':' but have not been successful. is there a better way to do it? Please help! I am trying to avoid a dialog box for user to enter a filename.

 

Thanks!

 

V

I may not be perfect, but I'm all I got!
0 Kudos
Message 1 of 4
(2,962 Views)
Solution
Accepted by topic author VeeJay
here is a little experiment .... building the path out of %m (month) %d (day) %(year) type stuff might help.
Message 2 of 4
(2,952 Views)

Thanks Hummer! I just tried different ways and now figured it out. Turns out, The second method in your method is what I have done. Using String to path conversion and sending that to filename.

 

V

I may not be perfect, but I'm all I got!
0 Kudos
Message 3 of 4
(2,947 Views)

Glad it worked.  You can concatenate strings to make up the path too...just convert them to a path when you're done and it should work fine...

 

Good luck

 

Hummer1

 

0 Kudos
Message 4 of 4
(2,942 Views)