Calculations with date of creation

Comments

1 comment

  • Mario Galea

    Date1 = new Date(@Year + @Month + 4)
    Date2 = new Date(@Year + @Month + 15)

    Date1.setMonth(Date1.getMonth() + 1)
    Date2.setMonth(Date2.getMonth() + 1)

    Submit = @Created On

    if (Submit <= Date1){
    Answer = 1
    } else if (Submit <= Date2){
    Answer = 0.5
    } else {
    Answer = 0
    }

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk