[CLOSED] DateField and Format

  1. #1

    [CLOSED] DateField and Format

    Hello,

    I'm using the DateField control and having troubles when I use the Format property. Looks great on client side when you select a date, but when you submit to the server the value is still DateTime.MinValue:

    Example:

    <ext:DateField ID="MyDate" runat="server" Format="F d, Y" />
    On page load I can use:
    MyDate.SelectedDate = DateTime.Now;
    On the client side it will read "September 7, 2009"

    Once I submit back to server it can't figure itself out ;)

    Suggestions? Or have I missed something?

    Cheers,
    Timothy
  2. #2

    RE: [CLOSED] DateField and Format

    Hi Timothy,

    The Format property should be set with a .NET DateTime format specifier. The Toolkit will automatically convert the .NET format into the PHP/Unix format required by ExtJS.


    Example


    <ext:DateField ID="MyDate" runat="server" Format="MMMM d, yyyy" />

    Hope this helps.


    Geoffrey McGill
    Founder

Similar Threads

  1. DateField Format
    By Timothy in forum 1.x Help
    Replies: 4
    Last Post: Jun 07, 2013, 5:42 PM
  2. [CLOSED] DateField Format
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 18, 2011, 12:39 PM
  3. DateField and Format
    By glenh in forum 1.x Help
    Replies: 2
    Last Post: Oct 19, 2010, 4:43 AM
  4. [CLOSED] DateField format
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 20, 2009, 9:47 AM
  5. [CLOSED] 0.4.6 : DateField format as dd/mm/yyy
    By stevejebson in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 13, 2008, 3:14 PM

Posting Permissions