10-15-2007 08:45 AM
10-15-2007 09:43 AM
Hey Bill,
flip the assignment like this: StationGlobals.current_date = Date()
In your example you are trying to store what's in the current_date to Date() which is not possible. The left hand side gets assigned the value of the right hand side.
Regards,
10-05-2011 02:28 PM
Using this current date string variable I would like to set a limit on the date stamp to expire. ie if the date is longer than 14 days I would like to do something in my program. What would be the easiest way to do this using the date string variable obtained from station_global_Date = Date(). How would this comparison be done in test stand.
Thanks
10-10-2011 05:49 PM
Hi Mdcoco,
I would recommend using the RunState.Root.Locals.StartDate function, set the StartDate to equal the date you want your 14-day count to begin, then you can set up an if then equation in which Teststand will compare the StartDate with the Station_global_Date you are referring to and if 14 days has passed, it will perform a certain action. Hope this helps!
Regards,
Jackie