1. #1
    Ext User
    Join Date
    Nov 2008
    Posts
    76
    Vote Rating
    0
    footballermahesh is on a distinguished road

      0  

    Talking TimeField

    TimeField


    Hai Alll I Have created a time field in my formpanel
    and the format of the time field is "2:15 PM"(i need This On The Display)
    when i select the 2:15 Pm i want to convert in to 14:15:00(coz my db field is datetime..)
    so how can i convert the (2:15 PM to 14:15:00)
    please help
    thanks in advance
    My code is
    Code:
    Mytime= new Ext.form.TimeField({
        width: 90,
        emptyText:'Time',
        name:'from_time',
         labelSeparator:''
        });

  2. #2
    Sencha Premium Member teddyjas's Avatar
    Join Date
    Dec 2007
    Location
    Singapore
    Posts
    262
    Vote Rating
    0
    teddyjas is on a distinguished road

      0  

    Default


    would be:
    Code:
    value = Date.parseDate(Mytime.getValue(), Mytime.format).format('H:i:s');

  3. #3
    Ext User
    Join Date
    Nov 2008
    Posts
    76
    Vote Rating
    0
    footballermahesh is on a distinguished road

      0  

    Thumbs up Fixed

    Fixed


    Thanks teddyjas
    Its Working...

Thread Participants: 1

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