This function returns the date part of any given timestamp.
datePart(timestamp, timeZone) #Output: Number
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the issue creation date, e.g. March 25th, 2020 00:00 as a number in milliseconds. If the creation date was March 25th, 2020 23:15 the output would be March 25th, 2020 00:00 (in milliseconds). The time part 23:15 will be removed from the timestamp and will be set to 00:00. |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number |
The parameter must be valid timestamp. Usually this value is retrieved from a field (e.g. due date, created date). |
|
|
timezone |
The time zone used for the calculation. |
Output
This function returns a number representing a timestamp
If you need the time part instead, you might want to have a look at the function timePart().
(books) Use cases and examples
| Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
|---|---|---|---|---|---|
| Check if an issue was resolved on time |
(input latin letters) |
Text | datePart() | ||
| Add comment after seven days in the same status |
|
||||
| Set a date on the same week day on alternate weeks |
|
addDays() nextDayOfTheWeek() modulus() weekOfTheYear() datePart() |