Versions Compared

Key

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

...

Code Block
#set($longVal = $currentMillis.longValue() + 86400000 )
$dateFormatter.withStyle($dateTimeStyle.DATE).format($jemhDateUtils.createDate($longVal))

Example Output:

29/Mar/15

When using the above, it operates in the context of the 'current' user, typically the sender of a mail (for incoming custom field defaults). You can default the locale of the date by using withDefaultLocale() from https://docs.atlassian.com/DAC/javadoc/jira/reference/com/atlassian/jira/datetime/DateTimeFormatter.html:

Code Block
#set($longVal = $currentMillis.longValue() + 86400000 )
#set($dateObj = $jemhDateUtils.createDate($longVal) )
$dateFormatter.withDefaultLocale().withStyle($dateTimeStyle.DATE).format($dateObj)

JEMHDateUtils

Status
colourRed
titlesince 3.2.6

...

Filter by label (Content by label)
event listener jemh issue notification
showLabelsfalse
max5
spacesJEMH
showSpacefalse
sortmodified
typeshowSpacepagefalse
reversetruelabels
typepage
cqllabel in ( "velocity" , "template" , "macro" , "date" ) and space = "JEMH"
labelsevent listener jemh issue notification
Page Properties
hiddentrue

Related issues