03-06-2020 07:32 AM
Hi All,
I need to convert a date to American format MM/DD/YYYY from UK format DD/MM/YYYY. Is there a way I can do this in Teststand?
Currently the date is coming from the operating system regional settings but I would prefer to keep the regional settings to UK format and change the date somewhere in my sequence so when it is saved to txt file it is in the US format.
Thanks
03-11-2020 05:26 AM
03-12-2020 05:52 AM - edited 03-12-2020 05:54 AM
Hi Pitol,
The date is being saved directly into a txt file using a bit of labview code.
I get the date within teststand using
Locals.UKdate = Date()
From here Locals.UKdate is fed into a labview code to save it to a txt file among other parameters.
I was hoping there would be a neat way to do it in Teststand using an expression but I could probably play around with the string manipulation and re shuffle the string in labview.
thanks
03-12-2020 01:30 PM
You can get the Date using the following:
Date(False,Locals.Year,Locals.Month,Locals.Day)
and then reformat it as string within TestStand