Hi Stefano,
Thanks for using Syncfusion
products.
We can set
the value for datepicker control by using the API called “value”. It is
used to specify the value for datepicker and its accepts the string or Date
object as a value. For your convenience we have prepared a simple sample to
show case how to set or get the value of datepicker and it can be downloadable
from below link.
Sample Link: DatePicker-sample
In the attached sample, we have used the following code
blocks to get or sets the date value.
[Script]
// Creating an object to the DatePicker Element
var datepickObj = $("#datepick").data('ejDatePicker');
// Set a value to the DatePicker
datepickObj.option('value', new Date());
// Get a value of DatePicker
var value = datepickObj.option('value');
|
Also if you want to know more about our components to
getting started, please find the below link.
http://help.syncfusion.com/web
In order to know more detailed information please refer the
below link which includes all the details to get started with our components.
http://help.syncfusion.com/cr/js
Also you
can find all the samples of our components in the following link location.
http://js.syncfusion.com/demos/web/
Please let us know if you have
further queries.
Regards,
Kaliswaran S