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
(2,239 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
(2,230 Views)

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

0 Kudos
Message 3 of 9
(2,225 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
(2,218 Views)

sorry - could not find the answer.

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

You should show us what you actually TRIED.

0 Kudos
Message 6 of 9
(2,207 Views)
Solution
Accepted by topic author 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
(2,203 Views)

I guess he was looking very hard.

0 Kudos
Message 8 of 9
(2,190 Views)
Solution
Accepted by topic author morrissey89

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

 

string.png

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


Message 9 of 9
(2,183 Views)