取消
显示结果 
搜索替代 
您的意思是: 

timestamp conversion

已解决!
转到解答
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 项奖励
1 条消息(共 10 条)
7,104 次查看

Here is how I would do it

 

Example.png

Tim
GHSP
2 条消息(共 10 条)
7,097 次查看

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 项奖励
3 条消息(共 10 条)
7,093 次查看

Correction

 

Example.png

Tim
GHSP
0 项奖励
4 条消息(共 10 条)
7,088 次查看
解答
接受人 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
5 条消息(共 10 条)
7,086 次查看
Thanks all for the extremely quick response.  That worked perfectly.
0 项奖励
6 条消息(共 10 条)
7,060 次查看

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

0 项奖励
7 条消息(共 10 条)
6,682 次查看

It is scan from string

 

Example.png

Tim
GHSP
0 项奖励
8 条消息(共 10 条)
6,673 次查看

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

0 项奖励
9 条消息(共 10 条)
6,672 次查看

great! thanxx

0 项奖励
10 条消息(共 10 条)
6,666 次查看