You need to sign in to do that
Don't have an account?
learnSF
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
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.
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,