ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Formating Date

Solved!
Go to solution

Hello, this is most likely an easy thing to do but I am not great at formatting string data type.

 

What I am trying to do is take a time stamp (ex: 10/31/17) and format it to 10-31-17.

 

I am not sure have to change the "/" into "-" or remove it all together so the date is just 103117 that is fine too.

0 Kudos
Message 1 of 9
(5,420 Views)

I have found the Help for the Format Date/Time String Function to be quite useful.

Not sure what you are using.

 

0 Kudos
Message 2 of 9
(5,411 Views)

I have looked there but find the answer I was looking for

0 Kudos
Message 3 of 9
(5,406 Views)

@morrissey89 wrote:

I have looked there but find the answer I was looking for


Didn't find or didn't understand.

Different.

0 Kudos
Message 4 of 9
(5,399 Views)

sorry - could not find the answer.

0 Kudos
Message 5 of 9
(5,394 Views)

You should show us what you actually TRIED.

0 Kudos
Message 6 of 9
(5,388 Views)
Solution
Accepted by morrissey89

Perhaps the Format Codes for the Time Format String would be helpful.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 9
(5,384 Views)

I guess he was looking very hard.

0 Kudos
Message 8 of 9
(5,371 Views)
Solution
Accepted by morrissey89

you can do it like this using 'search and replace string'

 

string.png

-----------------------------------------------------------------------------------------------------------------------------
Waiting For the inner calling 🙂


Message 9 of 9
(5,364 Views)