Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I add the current date to a template?

I am able to add a date from the content by using

 https://confluence.atlassian.com/conf71/configuring-time-and-date-formats-979423992.html 

I am not able to get this date to show the current date, it is showing the date I choose after adding the content. Is it possible to make it default to the current date?

2 answers

1 accepted

0 votes
Answer accepted

Hi @Bret Wisecarver ... There isn't an option on cloud. There might a possibly on server or DC if you manipulate the velocity template. 

1 vote

Hi @Bret Wisecarver 

welcome to this wonderful community.

As your link is showing server link my solution may work out for you - I created a simple costumer macro which shows last date modified.

##Macro title: AUI Button
## Macro has body: N

## @noparams

$action.dateFormatter.formatDateTime($content.getLastModificationDate())

It's working fine for us.

We use it in a table with page properties and it looks like this.

image.png

Feel free to ask for more help

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

101 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you