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
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?
@Nic Brough -Adaptavist- would you please tell me example?
I just need to convert "create page date" to hijri shamsi and show on page.
any idea?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the REST API to fetch the date, your code in your page can them format it any way you want to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Confidently manage users, permissions, and content in Confluence. This self-paced learning path helps admins streamline collaboration, improve user experience, and apply the best practices to get the most out of Confluence in any cloud environment.
Start Learning Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.