From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(3,424 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
(3,415 Views)

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

0 Kudos
Message 3 of 9
(3,410 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
(3,403 Views)

sorry - could not find the answer.

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

You should show us what you actually TRIED.

0 Kudos
Message 6 of 9
(3,392 Views)
Solution
Accepted by morrissey89

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


GCentral
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
(3,388 Views)

I guess he was looking very hard.

0 Kudos
Message 8 of 9
(3,375 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
(3,368 Views)