NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

date and time

Hi,

 

i need to parse the Date String which looks like 1\2\2012 (it may have 0 appended at times like 01\02\2012)in to seprate Date,Month and Year variables in TestStand.

Please do help me on the same.

 

Thanks in Advance

Bha

0 Kudos
Message 1 of 3
(3,456 Views)

Locals.Day = Val(Left(Locals.DateString, Find(Locals.DateString, "\\", 0, True, False))),

 

Locals.Year = Val(Right(Locals.DateString, (Len(Locals.DateString) - Find(Locals.DateString, "\\", 0, True, True))-1)),

 

Locals.Month = Val(Mid(Locals.DateString, (Find(Locals.DateString, "\\", 0, True, False) + 1), (Find(Locals.DateString, "\\", 0, True, True)) - (Find(Locals.DateString, "\\", 0, True, False) + 1)))

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(3,452 Views)

If you are passing this string to or from LabVIEW, please vote for this idea.

 

Add a native DateTime data type to the TestStand Engine

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