Hi,
I am using a MicroLogix 1500 to collect some data from a barcode reader, the application spec requires me to change the format of the date which is received from the reader.
So I am using the AEX to extract the year month and day separately and then the ACN command to re arrange them. the format i require is
YYYY-MM-DD
so i have stored the - dashes in a string ready to concatenate to my string when required but for some reason when i run the program both of the -dashes have appended to the send of the string so it reads
YYYYMMDD--
not where i require them, does anyone know how to resolve this?
Thanks
Jen
I am using a MicroLogix 1500 to collect some data from a barcode reader, the application spec requires me to change the format of the date which is received from the reader.
So I am using the AEX to extract the year month and day separately and then the ACN command to re arrange them. the format i require is
YYYY-MM-DD
so i have stored the - dashes in a string ready to concatenate to my string when required but for some reason when i run the program both of the -dashes have appended to the send of the string so it reads
YYYYMMDD--
not where i require them, does anyone know how to resolve this?
Thanks
Jen