How to modify the date and time that appears under an annotation?

WebViewer Version: 8.2.0

Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? Yes

Please give a brief summary of your issue:
How do I programmatically change the date and time that appears under an annotation?

I would like to know how to the following specifically:

  1. set the date and time for an annotation to a specific time-zone
  2. set the date and time to another value entirely

Are these possible under my current webviewer version?

Please describe your issue and provide steps to reproduce it:

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:



You can use the setNoteDateFormat API on the UI to change the format: PDFTron WebViewer Namespace: UI.

If you want specific timezones, you will perhaps need a separate library or API to determine that before changing it on an annotation. To do that, you will have to change the DateCreated property on the annotation during annotationChanged: PDFTron WebViewer Class: AnnotationManager. DateModified might be another property you want to adjust as well.

Let me know if this helps!