Select Page

V11.3.X Datepicker Decimals

Home Automation Forum Robotic Process Automation Automation Anywhere V11.3.X Datepicker Decimals

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #227285
    Anonymous
    Inactive

    I’m using Automation Anywhere 11.3.4, and I’m trying to input today’s date directly into a datepicker instead of popping it open and clicking on a date.  I can do it by hand, but when the bot tries it, the datepicker turns it into a decimal (0.00026xxx).  Do datepickers do strange thins when bots interact with them, or is this just happening to me because it’s a homegrown C# (I believe) application?

    #227287
    Anonymous
    Inactive

    Let me guess.  The full number is 0.000262085032032615?

    Since variables are loosely typed in AAE V11, (not so in A2019), it doesn’t know you want a String.  It’s doing math.  9/17/2020 is 9 divided by 17 divided by 2020.

    You can fix this by wrapping your date variable in quotes (or anything that doesn’t register as a number or math operator) to force it to become a string & then removing the quotes (or other non-number or math operator) in a String Before-After operation.

    Wrap a date in quotes to force it to be a string

    Here’s the String Before-After:

    AAE V11.3.4 String Before-After

    #227288
    Anonymous
    Inactive

    You’re a lifesaver!  Thanks for the super fast response!  It worked!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.