function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to get timestamp for static resource



How to get timestamp for static resource like this.




In to databse time stamp is looks like 2009-07-27T21:28:30.000z and that was systemModstamp.


I am confuse with which timestamp I need to take and how to write in URL.




you don't need to hard code time stamps. It's added automatically by the system when you reference your resource in your visualforce page like {!$Resource.<name>}


for more info take a look at this article 


Thanks for reply.


I need to reference hard url of pdf form for XFDF link.


In this link code is like that,


  String s = '<?xml version="1.0" encoding="UTF-8"?>' +
            '<xfdf xmlns="" xml:space="preserve">' +
            '<f href=""/>' +
            '<fields>' +


for this I need to hardcode timestamp in place of 0.


or it would be great if you can suggest me how to genarate this url?