09-06-2012 06:27 AM
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
09-06-2012 08:37 AM
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)))
09-14-2012 09:08 AM
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