Hybrid View

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    218
    Answers
    10
    Vote Rating
    5
    webfriend13 is on a distinguished road

      0  

    Default Unanswered: Formatting string into date from a specific format

    Unanswered: Formatting string into date from a specific format


    HI all,

    I have a string 20121109 (Ymd format or 2012 nov 09). I want to convert this string into a date by supplying the format. Please let me know how can i convert this string into date. I know I can split the string and then I can convert it into date but I dont want to go that way.


    I have tried this but it did not worked:
    var date = Date.parseDate('20121109', 'Ymd');

  2. #2
    Sencha User pcr's Avatar
    Join Date
    Jun 2009
    Posts
    183
    Vote Rating
    2
    pcr is on a distinguished road

      1  

    Default Did you try moment

    Did you try moment


    For all date formatting etc I use moment.js.

    Look at: http://momentjs.com/

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar