[CLOSED] Version 1.2 Grid/Store DateFormat

  1. #1

    [CLOSED] Version 1.2 Grid/Store DateFormat

    Hello

    On Version 1.2, why the date fields are not displayed/rendered on the grid.
    Here is how we declared the field on the store.
    <ext:RecordField Name="EntryDate" DateFormat="yyyy-MM-ddTh:i:s" Type="Date" />
    I guess it's the same issue on the EXT.NEt examples landing page (Recent SVN Commits), date column is blank.
    If we remove the "DateFormat" field from the above "Ext:RecordField", then the datefield/column is rendered correctly.
    What's the right way of doing??

    Advise..
    Last edited by Daniil; Oct 04, 2011 at 5:15 PM. Reason: [CLOSED]
  2. #2
    Thanks for the report. We are investigating.

    Please try using an <ext:DateField> Column type and let me know if it renders correctly for you.

    Example

    <ext:DateField Name="EntryDate" DateFormat="yyyy-MM-ddTh:i:s" />
    Geoffrey McGill
    Founder
  3. #3
    Hi,

    You don't need to define DateFormat for the field if you bind Date in the page
    DateFormat should be 'yyyy-MM-ddThh:mm:ss.u' (1.2 version serialize data with milliseconds)
  4. #4
    Looks like on version-1.2, "Date" is serialized differenetly, if i change the dateFormat
    from
    <ext:RecordField Name="AccessTimeStamp" DateFormat="yyyy-MM-ddTh:i:s"  Type="Date" />
    to
    <ext:RecordField Name="AccessTimeStamp" DateFormat="yyyy-MM-ddTh:i:s.u"  Type="Date" />
    works correclty.
    or need to remove the "DateFormat" attribute from the "ext:RecordField".

    Defining the column as "<ext:DateColumn" didn't work..
    <ext:DateColumn Header="Opening Date" Format="yyyy-MM-ddTh:i:s" DataIndex="OpenningDate" Width="95" />
    Either way it's a big change, it looks like a bug to me..

    Advise..
  5. #5
    Hi,

    1. Do not specify DateFormat in the RecordField if it is not required. I don't see any sense to define DateFormat in your case
    2. As I mentioned in previous post, 1.2 serializes milleseconds therefore format of serialized date is "yyyy-MM-ddTh:i:s.u"
    3. Format property of DateColumn for converting date to string only (to display date as required), it is not used during date parsing by reader

    it looks like a bug to me
    Can you provide more details? What do you consider as bug?
  6. #6
    Somehow we got into habit of defining the "DateFormat" even though it's not required on "<ext:RecordField"
    On version 1.2 date serialization changed, all our code broke.
    I guess now we need to goback and fix our code/mistakes. :(

    Please mark this post as sloved.

Similar Threads

  1. [CLOSED] [1.0] DateFormat="M$" not working
    By Fredrik in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jul 28, 2011, 4:04 PM
  2. [CLOSED] DateFormat on store?
    By Dave.Sanders in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Mar 15, 2011, 12:55 PM
  3. [CLOSED] store always databinding in latest version
    By alexp in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 07, 2009, 4:29 PM
  4. Replies: 2
    Last Post: Jul 08, 2009, 12:37 PM
  5. DateFormat in Grid Problem
    By bruce in forum 1.x Help
    Replies: 1
    Last Post: Mar 19, 2009, 8:47 AM

Posting Permissions