LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timestamp conversion

Solved!
Go to solution
In the attached LV2009 snippet, I use the "%d%b%Y %H:%M" to format the TimeStamp into a date/time that looks like this:  03/Dec/2009 10:33.  Now what I want to do is receive a string (in that same format) and stuff it back into a TimeStamp.  How can I do this?
0 Kudos
Message 1 of 10
(7,836 Views)

Here is how I would do it

 

Example.png

Tim
GHSP
Message 2 of 10
(7,829 Views)

mrbean wrote:
In the attached LV2009 snippet, I use the "%d%b%Y %H:%M" to format the TimeStamp into a date/time that looks like this:  03/Dec/2009 10:33. 

That's not the format your VI creates. In fact, your strings look like: "txtHDate1=22Oct2009 06:45". Is the text "txtHDate1=" part of the input string? I also don't see any slashes. 

0 Kudos
Message 3 of 10
(7,825 Views)

Correction

 

Example.png

Tim
GHSP
0 Kudos
Message 4 of 10
(7,820 Views)
Solution
Accepted by mrbean
My first example work witht the format that you are actually generating the second work with what you said you were generating.
Tim
GHSP
Message 5 of 10
(7,818 Views)
Thanks all for the extremely quick response.  That worked perfectly.
0 Kudos
Message 6 of 10
(7,792 Views)

whats the name of  the function used here ? i am having problem finding it. Could cou attach this vi as attachment ?

0 Kudos
Message 7 of 10
(7,414 Views)

It is scan from string

 

Example.png

Tim
GHSP
0 Kudos
Message 8 of 10
(7,405 Views)

It's the Format Into String function. It's in the String palette.

0 Kudos
Message 9 of 10
(7,404 Views)

great! thanxx

0 Kudos
Message 10 of 10
(7,398 Views)