How to take input for ceil, round, month and floor and how to use it using mjsv

how to use ceil, round,month and floor functions.

Hello @bhairavi

Use the given script in Modified Java Script to achieve your use case

var ceilFunction = Math.ceil(inputValue);
var roundFunction = Math.round(inputValue);
var floorFunction = Math.floor(inputValue);

var DateObj = new Date();
var months = DateObj.getMonth();

Take a note that getMonth() returns the month (0 to 11) of a date.
January =0, February = 1, … so on.

1 Like