Discussion:
Formatting a date string
(too old to reply)
Cory K
2008-08-08 18:40:06 UTC
Permalink
I thought this would be easy enough, but I am having so much trouble doing this.
 
I have a time stamp constant, which I have adjusted so that it is in the following format:
%m/%d/%y
Since I can't save files with " / " character, I am goint to use " . " instead.
 
My original plan was using a 'search and split string' using '/' as a divider.
This would give me 3 strings:
%m
/%d
/%y
 
That is perfect, except I dont want the '/' in front of the %d and %y.
Could someone help me out with this last step?
lmtis
2008-08-08 18:40:07 UTC
Permalink
How about using search and replace string with the empty string constant as the replacement?
smercurio_fc
2008-08-08 19:10:04 UTC
Permalink
Or... You could just use the Format Date/Time String function:<img src="Loading Image..."> Message Edited by smercurio_fc on 08-08-2008 01:43 PM


Example_VI.png:
http://forums.ni.com/attachments/ni/170/347954/1/Example_VI.png
Cory K
2008-08-15 14:40:22 UTC
Permalink
See, whenever I have a question, someone can always solve it in two clicks of their mouse.Why is it always the simple solutions I overlook? :-)
Loading...