AutoTools Date time calculation on variables

Discussion in 'AutoApps' started by Khopadi, Mar 27, 2018.

  1. Khopadi

    Khopadi New Member

    Joined:
    Mar 27, 2018
    Messages:
    4
    Likes Received:
    0
    In Autotools, we can do Math on a fixed date/time, is there a way to pass a variable as date/time?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sure. :) What part about it can't you get to work?
     
  3. Khopadi

    Khopadi New Member

    Joined:
    Mar 27, 2018
    Messages:
    4
    Likes Received:
    0
    I have a datetime in yyyy-MM-ddTHH:mm:ss format in a variable. I pass that var to 'Add time' function with correct format. I pass 330 value as minutes to add.

    The problem is, no matter what datetime I set it to, it always adds the minutes to the Current Time. Use Now is unchecked.
     
    Last edited: May 21, 2018
  4. Khopadi

    Khopadi New Member

    Joined:
    Mar 27, 2018
    Messages:
    4
    Likes Received:
    0
    Looks like I found the issue, yyyy-MM-ddTHH:mm:ss is not considered as a valid format. And whenever input format doesn't match with the input date the tool uses the current date and time..
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    So you got this now? :)
     
    Khopadi likes this.
  6. Khopadi

    Khopadi New Member

    Joined:
    Mar 27, 2018
    Messages:
    4
    Likes Received:
    0
    Yes. :)
     

Share This Page