Skip to main content
Navigator | Tier 3
July 6, 2021
Solved

How to get the current system date in the Automation Anywhere community edition (build 9604)?

  • July 6, 2021
  • 6 replies
  • 6240 views

Hello Team,

 

I want to extract the current system date but I am not found such action in the DateTime package, So how can I get the current system date.

Please help me.

Thank you...

    Best answer by Venkata Kancharla_1

    MicrosoftTeams-image (6)MicrosoftTeams-image (5)

    6 replies

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    July 6, 2021

    Hi @Jitendriya Pardia​ ,

     

    • Select the source date-time variable as System: Date
    • Convert date time variable as a string "Here you can custom date formats" If required.

     

    Capture 

    Thanks!

    _Tamil_
    Navigator | Tier 3
    July 6, 2021

    MicrosoftTeams-image (6)MicrosoftTeams-image (5)

    Ashwin A.K
    Navigator | Tier 3
    July 6, 2021

    Hi @Jitendriya Pardia​ ,

     

    Simply type in $ and that will trigger the Intellisense.

    To get the System date, type in $System:Date$ and you are good to go.

     

    SystemDateTime 

    But this is rarely of use, since we can't use inline operations to convert that DateTime to string, so the approach would be to use the DateTime: To String Action to first convert it to string, or if you simple want to use it in an If Condition, you don't have to assign it to a separate variable.

     

    Kind Regards,

    Ashwin A.K

     

     

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    Navigator | Tier 3
    July 6, 2021

    Hi @Jitendriya Pardia​ Under system variable you can find Date variable.

    And under DateTime package you can use 'to string' command to convert system date time to required format.​

    Navigator | Tier 3
    July 6, 2021

    Thank you @santoshkumar sabat​ @Ashwin A.K​ @venkata kancharla​ @Tamil Arasu​ 

    for the quick reply and your support.

    Cadet | Tier 2
    July 27, 2023

    MicrosoftTeams-image (6)MicrosoftTeams-image (5)

    Hi!
    I just want to say thank you so much. You helped me a lot with your post.

    Best regards,

    Ald41r