Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
pjs.define("date", { type: 'date', initValue: '2017-12-01'});
pjs.define("num", { type: "zoned", length: 7, decimals: 2});
  

num = date.getDaysInMonth();


return num;
// num is 31 (January has 31 days)