Here adding a html webresource in entity form and the value will be coming in this from web API,so
I need to get this visit time and visitdate value in crm through javascript how to do that.
Please help.

Here adding a html webresource in entity form and the value will be coming in this from web API,so
I need to get this visit time and visitdate value in crm through javascript how to do that.
Please help.
Hello ,
To achieve this , will need to use Xrm.Utility.openWebResource(webResourceName,webResourceData,width, height) to pass the date and time from the html webresource.
By using (data Parameters) ,by configure it from the form customization in the custom parameters section as below for the web resource properties to pass the data parameter.
Please have a look in this documentation docs.microsoft.com/.../jj602956(v=crm.8) contains better explanation about this.
Thanks,