Skip to main content

Search

Search

Translate dates to Chinese numbers

Comments

3 comments

  • Avatar
    Xabier Clemente
    Moderator

    Hi Mike!

    Welcome to the BarTender Community!

    We could try using multiple Search and Replace Transform actions in order to seek particular dates and translate them to Chinese:



    We would need to create quite a few actions, but I believe this would help us work around this issue. For example with these 3 actions I've managed to convert the date fully from 2021/11/02 to the desired output:



    Now, we would need to create at least 44 actions for this method to work, one for each day, month, and year we want to use. However, I believe it'll be quicker than delving ourselves into VBscripting. 

    You can learn more about Search and Replace Transform actions here.

    Let us know if this was of use!

    0
  • Avatar
    Mike Sell

    Thanks Xabier. 

    This works nicely.  I have a prompted date data type embedded object  to allow users to pick from the date selector and an "object value" object with text data type for the translation

    0
  • Avatar
    Xabier Clemente
    Moderator

    You are welcome Mike!

    Thank you for letting us know this worked for you.

    We could have also used BarTender's VBscript or pulled the correct data from a database and replaced it. There are plenty of workarounds in order to achieve this.

    0

Please sign in to leave a comment.