Hi Jorge,
Your requirement to give a specific date format to the date picker and date range picker controls can be achieved by specifying the format property in model. please check the code below,
Code snippet:
index.cshtml
| <ejs-inplaceeditor id="date" type="Date" mode="Inline" value="ViewBag.dateValue" model="ViewBag.dateModelData"> </ejs-inplaceeditor> <ejs-inplaceeditor id="dateTime" type="DateTime" mode="Inline" value="ViewBag.dateTimeValue" model="ViewBag.dateModelData"> </ejs-inplaceeditor>
|
HomeController.cs
| public IActionResult Index() { ViewBag.dateModelData = new { placeholder = "Select date", format = "yyyy-MM-dd" }; return View(); } |

Documentation: https://ej2.syncfusion.com/aspnetcore/documentation/datetimepicker/date-time-format
Please refer the attached sample below,
Regards,
Vinitha
Attachment:
CoreIPE_edb9f3c4.zip