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
Phani PYDIMARRY 11Phani PYDIMARRY 11 

how to pass a date field with %2f from a custom button

Hello, 

I am trying to pass a link where in I have a requirment to pass today's date and today's date Minus 30 days. The link is something like this . V&ID is a custom field which I have acheived but how to format the date like below 
 
/usocLocator.aspx?type=V&id=632&from=12%2f01%2f2019&to=05%2f18%2f2020

 
AbhishekAbhishek (Salesforce Developers) 
Hi,

You can use the {!TODAY} merge field.

I believe the following example should give an idea,


/006/e?retURL=%2F{!Contract.Id}&RecordType=012250000004Vbx&ctrcid={!Contract.Id}&opp3=Opportunity+for+{!Account.Name}+{!TODAY}&opp4_lkid={!Contract.AccountId}

Thanks.