Results 1 to 5 of 5

Thread: date: parse in one langauge and format in another

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    448

    Default date: parse in one langauge and format in another

    Hi all
    I have a string in English representing a date. I need to parse it to a date object and format it to a different language (a language supported by ext in the locale package).
    problem is that if I include the local package the parse fails. when I remove it it succeeds but then I cant format it to a different language.
    what are my options? did I miss something?
    thanks.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    How are you doing the parse? Are you specifying a format?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    448

    Default

    yes;I am doing:
    Code:
    //Mar 26, 2015 12:48:00 PM   M d, Y g:i:s A                
    var dt = Ext.Date.parse(dateStr, "M d, Y g:i:s A");
    and now I need to output the date in a different language...

  4. #4
    Sencha User
    Join Date
    Nov 2010
    Posts
    448

    Default

    need some help here...

  5. #5
    Sencha User
    Join Date
    Nov 2010
    Posts
    448

    Default

    bump again. cant get passed this...

Similar Threads

  1. Replies: 9
    Last Post: 7 Jan 2015, 4:04 AM
  2. [FIXED] Ext.Date fails to parse Japanese datetime in 24-hr format
    By thokr02 in forum Ext:Bugs
    Replies: 2
    Last Post: 15 Oct 2012, 3:16 PM
  3. Ext.Date.parse problem when using format 'W-o'
    By siebe vos in forum Ext:Bugs
    Replies: 0
    Last Post: 19 Oct 2011, 6:55 AM
  4. Any easy way to parse the JSON Date format used by Microsoft Asp.net ajax ?
    By cloudster in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 8 Jun 2009, 3:04 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
  •