Robotic Process Automation (RPA)

Robotic Process Automation (RPA)

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

textToDateTime --text "${eachDate}" dateTim=value String was not recognized as a valid DateTime.

  • 1.  textToDateTime --text "${eachDate}" dateTim=value String was not recognized as a valid DateTime.

    Posted 03/04/22 01:45 AM



    While running the above code, I found this error textToDateTime --text "${eachDate}" dateTim=value String was not recognized as a valid DateTime. whereas, I have tried this code in different computer but it's working fine. can anyone help me on this?

    Thanks & regards

    Abdul Kareem



    ------------------------------
    Abdul Kareem
    ------------------------------


  • 2.  RE: textToDateTime --text "${eachDate}" dateTim=value String was not recognized as a valid DateTime.

    Posted 03/04/22 07:25 AM
    Your custom format is: MM/dd/yyyy, which translate to: Month/day/year.
    Therefore, the date text should be month/day/year, however your examples are day/month/year.
    • 29/08/2021 -> there is no month 29.
    Change your variable to dd/MM/yyyy.

    ------------------------------
    Joba Diniz
    Product Manager
    IBM
    ------------------------------