Globiflow - Date Logic for Tasks Not Working

Comments

3 comments

  • Rainer Grabowski

    Hi Steven, 

    I assume your formulas are in 2 IF (Sanity Check) action bricks (followed by an update action and an End IF). 
    If so, they are correct - except the fact that it needs the year too: 

    date("YW",strtotime([Current Date (Y-m-d)]))

    Rainer

    0
    Comment actions Permalink
  • Steven Lantz

    That's it, thank you Rainer!

    0
    Comment actions Permalink
  • Rainer Grabowski

    FWIW:
    You don't need the IF (Sanity Check) bricks. 
    Update item 
    Completed Date = Calc [(Item) Completed Date] == "" ? ( date("YW", strtotime([Current Date (Y-m-d)])) >= date("YW", strtotime([(Item) Due Date] )) ? (date("Y-m-d", strtotime([(Item) Due Date] )) : [Current Date (Y-m-d)] ) : date("Y-m-d", strtotime([(Item) Completed Date]))

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk