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
learnSFlearnSF 

How to get timestamp for static resource

Hi,

 

How to get timestamp for static resource like this.

 

resource/1235794002000/stylesheet_red

 

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.

 

Thanks

BulentBulent

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 

learnSFlearnSF

Thanks for reply.

 

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

http://wiki.developerforce.com/index.php/Adobe_XFDF

 

In this link code is like that,

 

  String s = '<?xml version="1.0" encoding="UTF-8"?>' +
            '<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">' +
            '<f href="http://mysites-developer-edition.na1.force.com/resource/0/myform.pdf"/>' +
            '<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?

 

Thanks,