03-09-2011 03:01 AM
Hi,
I am using Labview 8.6. I want to parse a time string, with an AM/PM flag inside, but the "scan form string" time format code
"%<%d/%m/%Y %I:%M:%S %p>T" does not recognize the AM/PM flag. The remaining string containes the AM/PM flag.
best regards,
Friedrich Vollink.
Solved! Go to Solution.
03-09-2011 03:20 AM
Example with default values.
03-09-2011 03:28 AM
I think Format string is wrong..it should be "%<%H:%M:%S%2u%m/%d/%y>T"
03-09-2011 04:09 AM
It works now. I toggled AM/PM time format on my laptop (control panel/local settings).
Thanks for the reply.
Regards,
Friedrich Vollink
03-09-2011 08:35 AM
The solution is:
define the AM and PM symbols in the control panel\regional settings\time Pffffffffffffffffffffffffffff
Regards,
Friedrich Völlink
05-06-2011 03:48 PM
I'm using LV2010 and the AM/PM flags are defined in the control panel/local settings, but I still have the same problem!
Format String: %<%m/%d/%y %H:%M:%S%p >T
Input String:
05/06/11 02:15:56 PM
Output Time Stamp:
2:15:56.000 AM
5/6/2011
Remaining String:
PM
05-07-2011 02:49 PM
Did you read the help for time format strings? You cannot use 'H' for 24 hour time and the am/pm flag.
05-09-2011 09:56 AM
Thanks, Missed that!