Skip to main content

Search

Change year value into string

Comments

2 comments

  • Matthias Walter

    Hi Evelyn Igerz,

    since the getFullYear Method returns a number it is treated as such.

    You can simply add the js function .toString() to it to get it as a string.

     

    Kind regards

    Matthias

     

     var date = new Date([[Deadline]]);
    return date.getFullYear().toString();
    0
  • Evelyn Igerz

    Thank you Matthias - solved my problem.

     

    BR, Evelyn

    0

Please sign in to leave a comment.