Hi Robin,
Thanks for contacting Syncfusion support.
We understood your requirement to accept the date format of “dd/MM/yyyy” in the Philippines culture.
The format API of Datepicker refers to the display format of the Datepicker that means the Datepicker would accept string and Dateobject supported by the Javascript’s Date constructor and display Date in the Datepicker’s format API.
Since Datepicker constructor accepts the Date string in the format of “MM/dd/yyyy” for Philippines culture, you would need to pass the date value as explained in the below stackoverflow thread.
For your reference, we have prepared a sample based on your requirement and is available for download under the following link.
Here, we have converted the Date string of format “dd/MM/yyyy” to a Date object before passing it to the Datepicker component as given in the below code.
function getDate(e: string):Date{
var dateParts = e.split("/");
var dateObject = new Date(Number(dateParts[2]), Number(dateParts[1]) - 1 , Number(dateParts[0]) ); // month is 0-based
return dateObject;
}
Also, we would like to let you know that passing Date value as an object instead of String is the most preferred way.
Please let us know if you have any further queries.
Regards,
Deepa L.