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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.