Skip to main content
Cadet | Tier 2
February 24, 2023
Question

Struggling with Dates in bot using Automation Anywhere Community Edition

  • February 24, 2023
  • 18 replies
  • 1243 views

Hello,

I am busy building a concept bot, but I am having a problem with one component.

 

Basically, I want the bot to loop through an excel sheet and look at the renewal dates for certificates in a specific column.  If the renewal date is 9 days before the system date, it should give the user a message to say that the certificate is due to expire and needs to be renewed.

 

I've tried searching for a possible solution, but to no avail.

 

Could you perhaps please assist?

    18 replies

    anjelicsAuthor
    Cadet | Tier 2
    February 27, 2023

    This is what the message box returns for Excel[7]
     

     

    Raul Jaimes
    Navigator | Tier 3
    February 27, 2023

    @anjelics 

    Try to use the Custom Format dd/MM/yyyy when you assign the datatime variable.

     

     

    HTH

    Regards

    anjelicsAuthor
    Cadet | Tier 2
    February 27, 2023

    Thank you for the suggestion, but I still get the same error :/

    Padmakumar
    Premier Pathfinder | Tier 7
    Premier Pathfinder | Tier 7
    February 27, 2023

    Thank you for the suggestion, but I still get the same error :/

     

    Have you checked date format showing for the System variable Date? You have to specify the same format.

    Padmakumar
    anjelicsAuthor
    Cadet | Tier 2
    February 27, 2023

    I'm not quite sure how to do that.
    I have built a simpler bot in the interim.

     

    Padmakumar
    Premier Pathfinder | Tier 7
    Premier Pathfinder | Tier 7
    February 27, 2023

     

    I'm not quite sure how to do that.
    I have built a simpler bot in the interim.

     

    Convert the System variable Date to String and put it in a Message box and see what is the format you are getting there.

    Padmakumar
    Navigator | Tier 3
    February 27, 2023

    For me, the robot works OK¡¡ 🤗

    Thanks @Padmakumar

     

    Cadet | Tier 2
    April 17, 2024

    MM/dd/yyyy
    dd/MM/yyyy
    dd-MM-yyyy

    MM-dd-yyyy

    I am getting the input date in the above mentioned formats. But I want to convert all the above formats to these format (dd-MMM-yyyy) using Automation Anywhere. I am able to handle one format at a time only, but I want to handle all these above mentioned formats at a time. Is it possible or not? If possible Please suggest me how to do.
    Thank you 
    Ashok Reddy