1. #1
    Ext User
    Join Date
    Jul 2009
    Posts
    82
    Vote Rating
    0
    andryi is on a distinguished road

      0  

    Default how to get the value of datefield

    how to get the value of datefield


    I've got a problem with the datefield
    I use datefield.getValue(), but I've got this "Mon Nov 2 00:00:00 EST 2009" and I want "2009/11/02"

    Can anybody help me?

  2. #2
    Sencha User MiamiCoder's Avatar
    Join Date
    Mar 2009
    Location
    Miami, FL
    Posts
    140
    Vote Rating
    2
    MiamiCoder is on a distinguished road

      0  

    Default


    Browse to the Date class in the docs and take a look at the format function.

  3. #3
    Ext User jcabrera's Avatar
    Join Date
    Aug 2009
    Posts
    11
    Vote Rating
    0
    jcabrera is on a distinguished road

      0  

    Cool you got a day object

    you got a day object


    You got a date object. if you stop and read:

    getValue
    () : DateReturns the current date value of the date field.

    it does not matter the format you used. format is used for parsing the value from the triggerField(superclass).

    try this...


    var d=datefield.getValue();
    var year = d.getFullYear();
    var month= d.getMonth()+1;
    var day = d.getDate();
    alert(year+"/"+month+"/"+day);

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi