Time format + comments

Hey guys,

in my layout I got the following code:

<div class="page-metadata not-personal">$action.getText("macros.blogpost.by.posted.on", ["#userLink($blog.creator)", $action.dateFormatter.formatDateTime($blog.creationDate)]) - last edited by #userLink($blog.lastModifier) on $action.dateFormatter.formatDateTime($blog.lastModificationDate)</div>

and the output is like

Tim posted on Jun 02, 2014 08:55 - last edited by Tim on Jun 11, 2014 14:05

I want the time-format to be like Tim posted on 02.06.2014 08:55 -last edited by Tim on 11.06.2014 14:05

Is there a specific formatter for this type of display-date?

My second issue is that I want the same format for all my pages, blogposts and comments. It works fine for pages and blogposts but I can't find the right line for time-format in my comment-layout. Can anyone help? :)

Cheers!

2 answers

1 accepted

Hi Tim,

Take a look here and check if it helps!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

667 views 21 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you