Skip to main content
Cadet | Tier 2
February 9, 2022
Question

Hi All, what is the custom time format for '11:21:00 PM' ? custom time format for 23:21:00 is HH:mm:ss, and is working fine, but hh:mm:ss should work for 11:21:00 PM but not working> please suggest.

  • February 9, 2022
  • 3 replies
  • 665 views
Hi All, what is the custom time format for '11:21:00 PM' ? custom time format for 23:21:00 is HH:mm:ss, and is working fine, but hh:mm:ss should work for 11:21:00 PM but not working> please suggest.

    3 replies

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    February 9, 2022

    Hi @Vijay Gupta​ ,

     

     

    • 'h' or 'H': Enables you to specify an hour as 'hh' or 'HH'.
    •  HH is a 24-hour time format and hh is a 12-hour time format with AM or PM.

     

     

    https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-date-time-formats.html/p>

     

    Thanks!

     

    _Tamil_
    Vijay.G1Author
    Cadet | Tier 2
    February 9, 2022

    Hi,

    Thanks for your reply, But it's not working.. I tried it already...

    Navigator | Tier 3
    February 10, 2022

    Hi @Vijay Gupta​ 

     

    Try adding a at the back of the format.

     

    imageThe a will show the AM or PM at the back of the time.