Results 1 to 2 of 2

Thread: Date formatting

  1. #1
    Sencha User
    Join Date
    Dec 2014
    Posts
    16

    Default Date formatting

    I want to use Ext.Date.format(value,format). I have date as 2014/03/05. How can I convert this to the date object so that it can be passed as 'value' argument to the format() function?

  2. #2
    Sencha User
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99

    Default

    Code:
    var extJsDate = Ext.Date.parse('2014/03/05', 'Y/m/d');

Similar Threads

  1. Date formatting
    By jagdeep.sharma in forum Ext: Q&A
    Replies: 3
    Last Post: 16 Nov 2012, 11:13 AM
  2. [INFOREQ] [ST 2.1.0-rc2] Sencha tries to apply date formatting for NULL date
    By KoSik in forum Sencha Touch 2.x: Bugs
    Replies: 1
    Last Post: 26 Oct 2012, 7:52 AM
  3. Date formatting
    By bkraut in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 30 Sep 2009, 10:42 AM
  4. Formatting date
    By snehaltikekar in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 10 Jul 2008, 1:34 PM
  5. Date formatting help
    By TheItalianJob in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 4 Feb 2008, 8:00 AM

Tags for this Thread

Posting Permissions

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