NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

I Date TestSTand data type

TestSTAND date data type

I use TestSTAND pop up message to request user to input date in the input string

 

for example: 10/8/2008  in TestSTAND input string in popup message.

 I assume this is a string

how do I compare this date to today date or any other date.?

 

Does TestSTAND have a TestSTAND Date data type?

0 Kudos
Message 1 of 2
(3,026 Views)

Hi,

 

No TestStand doesn't have a Date type.

 

The Date() function returns a string i.e "20/10/2008". Therefore, providing you entered in the same format you could do a StrComp(Locals.DateEntered, Locals.CurrentDate) which if the same would return 0.

But you could get Date() to return the individual Year, Month, Day values then you could do a check on these values. Check out the syntax in the Function Browser.

 

Hope this helps

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 2
(3,022 Views)