Skip to main content

Search

Search

Format datetime in string

Comments

1 comment

  • Avatar
    Peter Thane

    The Like command is not present in VB script.

    If the data string is always the same length you could just extract the date elements you want from the string something like this (there are probably better ways to code it , but this works)

    Value = Format.NamedSubStrings("csn").Value

    Value = Right(Value,21)

    Value1 = Left(Value,10)

    Value2 = Left(Value1,2)

    Value3 = Right(Value1,2)

    Value = Value2 & "/" & Value3

     

    (You may have to make this and event controlled script to be processed after the barcode data is entered, such as OnIndenticalCopies for example)

    0

Please sign in to leave a comment.