Results 1 to 2 of 2

Thread: Receiving and Posting Timestamp with millisecond value

  1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    40

    Default Receiving and Posting Timestamp with millisecond value

    Hi
    I am getting the timestamp with the millisecond value from the server and want to post it back to the server with the same millisecond value. How do I do this?. I tried dateFormat:'c' in the extjs reader, but when I display that it shows 000 for millisecond
    Code:
    (m/d/Y H:i:s.u)
    .

    data in the db : 2010-07-10 18:54:59.199475 (total msec value : 1278802499199)
    when I post it back to the server : 2010-07-10 18:54:59 (total msec value : 1278802499000)

    server side : jdk 1.6
    ext js : 3.2.1

    Thanks in advance.

  2. #2
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,232

    Default

    dateFormat only configures the reader.
    you'll need to manually convert the Date object in the Store to a unix timestamp value (i.e. via Date#getTime()) before sending it back to the server.


    p.s. i've deleted your double post in the Open Discussion forum.

Similar Threads

  1. IE 7/8 Issue with Editor Grid, response not receiving on server
    By gajendrabang in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 27 Oct 2009, 8:26 PM
  2. Outer panel receiving all keystroke responses and not the inner panels
    By nickydavid in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 13 Jan 2009, 11:31 PM
  3. Receiving chunked xml response
    By pmahoney in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 19 Feb 2008, 1:25 AM
  4. Replies: 0
    Last Post: 17 Dec 2007, 1:24 AM
  5. Date.createParser Millisecond override
    By Green in forum Ext 1.x: Bugs
    Replies: 9
    Last Post: 10 Oct 2007, 12:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •