LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting a date string

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?
Cory K
0 Kudos
Message 1 of 4
(2,509 Views)
How about using search and replace string with the empty string constant as the replacement?
Jim

LV 2020
Message 2 of 4
(2,505 Views)
Or... You could just use the Format Date/Time String function:



Message Edited by smercurio_fc on 08-08-2008 01:43 PM
Message 3 of 4
(2,501 Views)

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? 🙂

Cory K
0 Kudos
Message 4 of 4
(2,453 Views)