Mar 14, 2013, 9:27 AM
[FIXED] [#175] [1.x] DateField using Format dd MMMM yyyy with locale vi-vn
Hi,
I have a datefield. I set its format to dd MMMM yyyy. The locale is vi-vn. I select a date but the selected date is MinDate. Could you please help me how to make it work?
Thanks in advance.
I have a datefield. I set its format to dd MMMM yyyy. The locale is vi-vn. I select a date but the selected date is MinDate. Could you please help me how to make it work?
Thanks in advance.
<%@ Page Language="C#" %>
<script runat="server">
protected void Button1_Click(object sender, DirectEventArgs e)
{
X.Msg.Notify("Message", this.date.SelectedDate.ToShortDateString()).Show();
}
</script>
<!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>Ext.NET Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" Locale="vi-vn" />
<a href="http://www.ext.net/"><img src="http://speed.ext.net/identity/extnet-logo-small.png" /></a>
<ext:Window
ID="Window1"
runat="server"
Title="Welcome to Ext.NET 1"
Padding="5"
Height="215"
Width="350"
Layout="FormLayout"
DefaultAnchor="100%">
<Items>
<ext:DateField runat="server" ID="date" Format="dd MMMM yyyy"></ext:DateField>
</Items>
<Buttons>
<ext:Button ID="Button1" runat="server" Text="Submit" OnDirectClick="Button1_Click" />
</Buttons>
</ext:Window>
</form>
</body>
</html>
Last edited by fabricio.murta; Apr 26, 2016 at 10:45 PM.