how to split StartDate in ejs-datepicker to calculate new EndDate

I am trying to add months using Payment Terms value and Payment Start and put the value on Payment End.


But unfortunately, I can't make it work. Any help will do.




1 Reply

SN Sevvandhi Nagulan Syncfusion Team September 6, 2021 12:54 PM UTC

Hi Joseph, 


Greetings from Syncfusion support. 


We can convert date object to date string using the below code.  Refer the below code. 


var dateObj = document.getElementById('datepicker').ej2_instances[0] 
dateObj.value.toLocaleDateString("en-US"); 



Refer the below common blogs for more information. 






Kindly get back to us for further assistance. 


Regards, 
Sevvandhi N 


Loader.
Up arrow icon