$(this).ejDatePicker('option', 'value',); // ?????
var dataString = $(this).ejDatePicker('getValue'); // empty
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.
// 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.
In order to know more detailed information please refer the below link which includes all the details to get started with our components.
Also you can find all the samples of our components in the following link location.
Please let us know if you have further queries.