Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,754
Community Members
 
Community Events
168
Community Groups

get create date of page with javascript

lareso I'm New Here Aug 20, 2022

Hi

This script convert today date to shamsi, now need to pass create date of page and it convert it to shamsi. any idea?

 

<!DOCTYPE html>

<html> <style>

body{ overflow-y: auto; padding-bottom: 50px;   padding-right: 50px; }

</style> <body> <script>


let today = new Date().toLocaleDateString('fa-IR');

document.write((today));

 

</script> </body> </html>

 

 

Thanks

1 answer

1 vote

Welcome to the Atlassian Community!

Why are you trying to do this by scraping pages when the REST API can do it all for you?

Suggest an answer

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

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

474 views 0 12
Read article

Atlassian Community Events