Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Power Scripts for Jira Cloud
Results will update as you type.
  • Get started
  • Configuration guides
  • Integration guides
  • Feature guides
  • Advanced features
  • Migration resources
  • Simple Issue Language
    • Getting started with SIL
    • SIL reference guide
    • SIL Functions library
      • Function Index
      • Packages
      • Array Functions
      • Basic Functions
      • Date and Interval Functions
        • addMonths
        • currentDate
        • day
        • dayOfWeek
        • endOfMonth
        • formatDate
        • hour
        • millisToDate
        • millisToInterval
        • minute
        • month
        • monthName
        • parseDate
        • second
        • startOfDay
        • startOfMonth
        • toDate
        • toJiraDateFormat
        • toRawWorkingInterval
        • toTimeZone
        • week
        • year
      • Excel Functions
      • File Manipulation Functions
      • HTTP Functions
      • Incoming Mail Processing Functions
      • Integration with Other Systems
      • Jira Administration Functions
      • Jira Integration Functions
      • Jira Service Management Functions
      • Jira Software Functions
      • Listener Functions
      • Math Functions
      • Parameter Functions
      • Scheduling Functions
      • String Functions
      • System Integration
      • Webhooks Functions
  • Tutorials and recipes
  • Jira Product Discovery support
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Date and Interval Functions
    Updated Aug 11

    Date and Interval Functions



    This section contains functions that enable users to deal with dates.

    Functions Summary

    • addMonths — Adds a number of months to a specified date, preserving the day of month where possible.
    • currentDate — Returns the current date.
    • day — Returns a number representing the day of month: 1-31.
    • dayOfWeek — Returns the day of week.
    • endOfMonth — Returns a date set on the last day of the month for the given date.
    • formatDate — Formats the given date into a date/time string accordingly to the given format expression.
    • hour — Returns the hour of the provided date: 0-23.
    • millisToDate — Converts milliseconds to a date.
    • millisToInterval — Converts milliseconds to a time interval.
    • minute — Returns the minutes of the provided date: 0-59.
    • month — Returns a number representing the month of the provided date (1-12).
    • monthName — Returns the month name of the provided date.
    • parseDate — Returns the parsed date according to the format you provided. If parse fails, it will return a null date.
    • second — Returns the seconds of the provided date: 0-59.
    • startOfDay — Returns a date, but strips off the hours, minutes and seconds.
    • startOfMonth — Returns a date set on the first day of the month for the given date. Also sets hours/minutes/seconds to 0.
    • toDate — Creates a date value from the specified parameters.
    • toJiraDateFormat — Displays the given date using Jira format.
    • toRawWorkingInterval — Returns a date interval converted to the specified number of hours per day.
    • toTimeZone — Converts a date to the specified time zone.
    • week — Returns the week number in the year of the provided date.
    • year — Returns the year of the provided date.



    Peacock

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 14, "requestCorrelationId": "8b8b78d588314122b2cc235298df49bb"}