Jun 09, 2014, 4:38 PM
[CLOSED] Text of DateField showing 1/1/0001
Hi, I am using a DateField that works well when selecting from date selector but it is not returning anything when user enters free text.
Anyways, this works:
In those cases I just need the strong from "text" property.
When I check the text property I get 1/1/0001:
<ext:DateField ID="CalcJobPricingDate" runat="server" Name="CalcJobPricingDate" HideMode="Display" AllowBlank="true" Hidden="true" />
(The control is hidden at first but then I unhide it when user clicks a button). Anyways, this works:
CalcJobPricingDate.SelectedDate.ToShortDateString()
But sometimes our user needs to enter a free text, in a different format, for example: 20140101 (YYYYMMDD format). In those cases I just need the strong from "text" property.
When I check the text property I get 1/1/0001:
CalcJobPricingDate.Text
How can I make the DateField return what was entered in the text box in code behind?
Last edited by Daniil; Jun 13, 2014 at 10:09 AM.
Reason: [CLOSED]