1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Javascript add days to date

Discussão em 'PSDN - Forum' iniciado por leonc, Novembro 20, 2018.

  1. leonc

    leonc Guest

    I created a trigger that updates a date (DueDate) field and adds 28 days to a date that is another date field (IssuedDate) in the object.

    The code is the following:

    var issueDate = new Date({!Issued_Date#iso});
    var dueDate = new Date();
    dueDate.setDate(issueDate.getDate() + 28);
    return dueDate;


    But it doesn't work as expected.

    Thank you in advance.

    Continue reading...

Compartilhe esta Página