[CLOSED] how to select current date to ext:DateField ?

  1. #1

    [CLOSED] how to select current date to ext:DateField ?

    when page is loaded , ext:DateField defaultly select the current date.
    <ext:DateField ID="DateField1" Format="yyyy-MM-dd" runat="server" InputWidth="90" LabelWidth="35"></ext:DateField>
    Last edited by Daniil; Jun 04, 2013 at 5:04 AM. Reason: [CLOSED]
  2. #2
    Quote Originally Posted by hdsoso View Post
    when page is loaded , ext:DateField defaultly select the current date.
    <ext:DateField ID="DateField1" Format="yyyy-MM-dd" runat="server" InputWidth="90" LabelWidth="35"></ext:DateField>
    Hi Hdsoso

    What do you mean by "Select" the current date..

    normaly you can set the date by setting the SelectedDate value via the datefield property...

    if this is created on the backend, then do this.
    DateField df = new DateField();
    df.SelectedDate = DateTime.Now; // this sets the current date on the Datefield component.
    like wise if its via html then its like this..

    <ext:DateField runat="sever" ID="myDatefield" SelectedDate ="2013-05-05"></ext:DateField>
    Regards Akpenob

Similar Threads

  1. [CLOSED] DateField Excluding 1 Date.
    By TuscanDev in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 31, 2012, 1:07 PM
  2. Datefield with date 2012-10-21
    By rafabar in forum 1.x Help
    Replies: 0
    Last Post: Oct 23, 2012, 7:29 PM
  3. MinValue when try to select a datefield value
    By tk.Mageztik in forum 2.x Help
    Replies: 6
    Last Post: Sep 12, 2012, 4:29 PM
  4. DateField select problem
    By m2276699 in forum 1.x Help
    Replies: 1
    Last Post: Nov 04, 2011, 12:26 AM
  5. Replies: 3
    Last Post: May 06, 2010, 12:48 PM

Posting Permissions