I am having an issue with RadDatePicker when trying to set the input date format to yyyyMMdd. The desired outcome is allow the user to enter a date in yyyyMMdd format but display the date in the culture specific short date format. I can achieve the desired functionality like this:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test Page</title>
</head>
<body>
<form id="Form1" runat="server">
<telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
<telerik:RadDatePicker runat="server" ID="RadDatePicker1"
RenderMode="Lightweight" Culture="English (United States)"
DateInput-DisplayDateFormat="d" DateInput-DateFormat="yyyyMMdd" >
</telerik:RadDatePicker>
</form>
</body>
</html>
The issue is when using the en-US culture. I can select a date from the popup and the date is displayed in MM/dd/yyyy format in the textbox. When I click in the textbox to enter the date, it is automatically changed to yyyyMMdd format and updating it in that format way works correctly. However, if I enter a date in MM/dd/yyyy format, the date is parsed in the dd/MM/YYYY format so 7/6/2021 becomes 6/7/2021.
When using the fr-FR culture, for example, it correctly parses entered dates entered as either yyyyMMdd or dd/MM/YYYY.
We are using Telerik UI for ASP.NET AJAX 2021.2.616
Any help would be greatly appreciated.
Greg