Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Available since 0.18.0 version

Date object propertyDescriptionSample value
formatDateTimedate and time in Jira datetime format11/sep/16 1:15 PM
formatDatedate in Jira date format11/sep/16
formatDateISOdate in ISO 8601 'YYYY-MM-DD' format2016-09-11
formatTimetime in Jira time format1:15 PM
dayday in 'DD' format03
weekweek number in year36
monthmonth in 'MM' format11
yearyear in 'yyyy' format2016

Math operations on date object

On date object user can do math operations and modify final date value. For example user can add minutes, hours, days, weeks, months or set hour/minutes to exact value. See available operation below:

Date object methodsDescriptionSample usage
withMinutes(<integerValue>)

modifies the date by setting specified number of minutes.

Value must be in the range [0,59]

${repeating.date.withMinutes(0).formatDateTime}
withHours(<integerValue>)

modifies the date by setting specified number of hours.

Value must be in the range [0,23]

${repeating.date.withHours(12).formatDateTime}
addMinutes(<integerValue>)modifies the date by adding specified number of minutes${repeating.date.addMinutes(15).formatDateTime}
addHours(<integerValue>)modifies the date by adding specified number of hours${repeating.date.addHours(2).formatTime}
addDays(<integerValue>)modifies the date by adding specified number of days${repeating.date.addDays(2).formatDateTime}
addWeeks(<integerValue>)modifies the date by adding specified number of weeks${repeating.date.addWeeks(1).formatDateTime}
addMonths(<integerValue>)modifies the date by adding specified number of months${repeating.date.addMonths(15).formatDate}
addYears(<integerValue>)modifies the date by adding specified number of years${repeating.date.addYers(1).formatDateTime}
  • No labels