KAPOW

Would you like to react to this message? Create an account in a few clicks or log in to continue.
KAPOW

Welcome to the Kapow forum. Here you can get help, use your skills to help others and enjoy hanging out in the company of other Kapow Robot Developers.


2 posters

    Date functions

    avatar
    Jacob Bruun


    Posts : 6
    Points : 1843
    Join date : 2019-11-11
    Age : 64

    Date functions Empty Date functions

    Post by Jacob Bruun Mon Nov 11, 2019 9:11 pm

    Can anybody tell me how  toadjust a extracted with x working day?
    avatar
    KenZink


    Posts : 8
    Points : 2570
    Join date : 2017-11-15

    Date functions Empty Re: Date functions

    Post by KenZink Wed Nov 20, 2019 9:37 pm

    you can use the Convert Variable Node to modify dates


    Date functions Modify11
    avatar
    Jacob Bruun


    Posts : 6
    Points : 1843
    Join date : 2019-11-11
    Age : 64

    Date functions Empty Re: Date functions

    Post by Jacob Bruun Wed Nov 20, 2019 9:45 pm

    Yes, but I want to go one day back to the nearest bankday, so the date must not be a day in a weekend or a Holiday.
    avatar
    KenZink


    Posts : 8
    Points : 2570
    Join date : 2017-11-15

    Date functions Empty Re: Date functions

    Post by KenZink Wed Nov 20, 2019 10:29 pm

    You could build some logic to determine what day the current day is using the expression editor to determine the day example    weekday(date())  is going to give you Wednesday and then evaluate that looking for a Saturday or Sunday and then have it deduct the date value in the convert variable to reflect the previous friday date.




    Date functions Testda11
    Date functions Modify13
    avatar
    Jacob Bruun


    Posts : 6
    Points : 1843
    Join date : 2019-11-11
    Age : 64

    Date functions Empty Re: Date functions

    Post by Jacob Bruun Thu Nov 21, 2019 2:24 pm

    Thanks, that Works Very Happy

    Sponsored content


    Date functions Empty Re: Date functions

    Post by Sponsored content


      Current date/time is Fri Nov 15, 2024 9:47 pm